Provides Page builders
Create a static page that has no states, only a view
Create a "sandboxed" page that cannot communicate with the outside world.
It is the page equivalent of a sanboxed program
Create a page that can communicate with the outside world.
It is the page equivalent of a element program
Set the message to pass when the flags change. If not set, the 'init' function is called, resulting in a complete reset of the page model.
A page is a small TEA app on its own.
It has the typical
Msg,Model,init,update,subscriptionsandview. It differs from a normal application in a few ways:The
initandupdatefunctions returnEffect Shared.Msg Msginstead ofCmd Msg.The
initfunction takes a uniqueflagsargument that is the output of the pagematchfunction (see Spa.addPublicPage).The
viewfunction returns aView Msg, which can be whatever you define.