Add a public page to the application
Add a protected page to the application
Once all the pages are added to the application, we can change it into a record
suitable for the Browser.application function.
Finalize the Spa application into a record suitable for the Browser.application
toDocument is a function that convert a view to a Browser.Document
appWithPages
|> Spa.application { toDocument = View.toDocument }
|> Browser.applicationIntermediate type for building an application
The application model
The top-level application message type
A page definition
See package Spa.Page for constructors
A model for storing the active page model
A message type that carries page messages
Bootstrap a Spa application