orus-io/elm-spa/1.2.0

NOTE: the latest version is 3.0.1

Spa.Page

Provides Page builders

static : view -> Page flags sharedMsg view () ()

Create a static page that has no state, only a view

{ init : flags -> model
, update : msg -> model -> model
, view : model -> view
}
-> Page flags sharedMsg view model msg

Create a "sandboxed" page that cannot communicate with the outside world.

It is the page equivalent of a sanboxed program

{ init : flags -> ( model, Effect sharedMsg msg )
, update : msg -> model -> ( model, Effect sharedMsg msg )
, view : model -> view
, subscriptions : model -> Sub msg
}
-> Page flags sharedMsg view model msg

Create a page that can communicate with the outside world.

It is the page equivalent of a element program