joshburgess/elm-route-craft/1.0.0

Page.Element

Convenience module for creating element pages (full TEA).

import Page.Element as Element


blogPage =
    Element.page
        { init = \shared -> ( Loading, fetchPosts )
        , update = updateBlog
        , view = viewBlog
        , subscriptions = \shared model -> Sub.none
        }
{ init : shared -> ( model, Cmd msg )
, update : msg -> model -> ( model, Cmd msg )
, view : shared -> model -> Html msg
, subscriptions : shared -> model -> Sub msg
}
-> Page shared model msg

Create a full page with commands and subscriptions. Alias for Page.element.