54 lines
652 B
Elm
54 lines
652 B
Elm
|
module Main exposing (..)
|
||
|
|
||
|
import Browser
|
||
|
import Html exposing (Html, h1, text)
|
||
|
|
||
|
|
||
|
|
||
|
---- MODEL ----
|
||
|
|
||
|
|
||
|
type alias Model =
|
||
|
{}
|
||
|
|
||
|
|
||
|
init : ( Model, Cmd Msg )
|
||
|
init =
|
||
|
( {}, Cmd.none )
|
||
|
|
||
|
|
||
|
|
||
|
---- UPDATE ----
|
||
|
|
||
|
|
||
|
type Msg
|
||
|
= NoOp
|
||
|
|
||
|
|
||
|
update : Msg -> Model -> ( Model, Cmd Msg )
|
||
|
update msg model =
|
||
|
( model, Cmd.none )
|
||
|
|
||
|
|
||
|
|
||
|
---- VIEW ----
|
||
|
|
||
|
|
||
|
view : Model -> Html Msg
|
||
|
view model =
|
||
|
h1 [] [ text "Your Elm app '{{cookiecutter.app_name}}' is working!" ]
|
||
|
|
||
|
|
||
|
|
||
|
---- PROGRAM ----
|
||
|
|
||
|
|
||
|
main : Program () Model Msg
|
||
|
main =
|
||
|
Browser.element
|
||
|
{ view = view
|
||
|
, init = \_ -> init
|
||
|
, update = update
|
||
|
, subscriptions = always Sub.none
|
||
|
}
|