Skip to content

Instantly share code, notes, and snippets.

@TayKangSheng
Last active October 5, 2020 15:40
Show Gist options
  • Save TayKangSheng/aa05fad19c59f32c8011f8d49095db6e to your computer and use it in GitHub Desktop.
Save TayKangSheng/aa05fad19c59f32c8011f8d49095db6e to your computer and use it in GitHub Desktop.
Browser.application template
module Site exposing (..)
import Browser exposing (Document, UrlRequest)
import Browser.Navigation exposing (Key)
import Url exposing (Url)
type alias Flags =
{}
type alias Model =
{}
type Message
= NoOp
main : Program Flags Model Message
main =
Browser.application
{ init = init
, view = view
, update = update
, subscriptions = subscriptions
, onUrlRequest = onUrlRequest
, onUrlChange = onUrlChange
}
init : Flags -> Url -> Key -> ( Model, Cmd Message )
init _ _ _ =
Debug.todo "implement init"
view : Model -> Document Message
view _ =
Debug.todo "implement view"
update : Message -> Model -> ( Model, Cmd Message )
update _ _ =
Debug.todo "implement update"
subscriptions : Model -> Sub Message
subscriptions model =
Sub.none
onUrlRequest : UrlRequest -> Message
onUrlRequest _ =
Debug.todo "implement onUrlRequest"
onUrlChange : Url -> Message
onUrlChange _ =
Debug.todo "implement onUrlChange"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment