Advertisement
umuro

Not Found. An example Rest Resource

Oct 19th, 2016
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --changequote(<!,!>)
  2. --include(<!elm-macros.elm-m4!>)
  3. module Component.Odds10.NotFoundPage
  4.   exposing(Model, init, initialModel, Msg, Event, update, view)
  5.  
  6. IMPORT_HTML
  7. IMPORT_MATERIAL
  8. import Type.Odds10.Page as Page
  9.  
  10. -- MODEL
  11.  
  12. type alias Model = ()
  13.  
  14. init : (Model, Cmd Msg)
  15. init = (initialModel, Cmd.none)
  16.  
  17. initialModel : Model
  18. initialModel = ()
  19.  
  20. -- ACTION, UPDATE
  21.  
  22. type alias Msg = ()
  23.  
  24. type alias Event = ()
  25.  
  26. update : Msg -> Model -> (Model, Cmd Msg, Maybe Event)
  27. update msg model =
  28.   (model, Cmd.none, Nothing)
  29.  
  30. -- VIEW
  31. view : Model -> Html Msg
  32. view model =
  33.   Page.body "Not Found" [ text "Really. It's not here!"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement