const mixinafPillow::Pages
afPillow::Pages
(Service) - Methods for discovering Pillow pages and returning PageMeta instances.
- callPageEvent
abstract Obj callPageEvent(Type pageType, Obj[]? pageContext, Method eventMethod, Obj[]? eventContext)
Manually executes the page event in the given page context.
Note this may be used to call any method on a page, not just ones annotated with the
@PageEvent
facet.- get
@
Operator
abstract PageMeta get(Type pageType, Obj[]? pageContext := null)Create
PageMeta
for the given page type and context.Convenience / alias for
pageMeta(...)
.- pageMeta
abstract PageMeta pageMeta(Type pageType, Obj[]? pageContext := null)
Create
PageMeta
for the given page type and context.(Note:
pageContext
are the arguments to the@InitRender
method, if any.)- pageTypes
abstract Type[] pageTypes()
Returns all Pillow page types.
- renderPage
abstract Obj renderPage(Type pageType, Obj[]? pageContext := null)
Manually renders the given page using
pageContext
as arguments to@InitRender
.Note that
pageContext
Strs are converted to their appropriate type via BedSheet'sValueEncoder
service.- renderPageMeta
abstract Obj renderPageMeta(PageMeta pageMeta)
Manually renders the given
pageMeta
.There should be no need to call this in normal Pillow usage.