const mixinafPillow::Pages
afPillow::Pages
(Service) - Methods for discovering and rendering pages.
- clientUri
abstract Uri clientUri(Type pageType)
Returns the uri that the given page type maps to.
- get
@
Operator
abstract Page get(Type pageType)Returns the page instance for the given page type.
- isWelcomePage
abstract Bool isWelcomePage(Type pageType)
Returns
true
if the given page type is a welcome page.- pageTypes
abstract Type[] pageTypes()
Returns all page types.
- renderPage
abstract Obj? renderPage(Type pageType, Obj[]? initParams)
Renders the given page, passing the
initParams
to the@InitRender
method.Note that
initParams
are converted their appropriate type via BedSheet's ValueEncoder service.