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
@PageEventfacet.- get
@Operator
abstract PageMeta get(Type pageType, Obj[]? pageContext := null)Create
PageMetafor the given page type and context.Convenience / alias for
pageMeta(...).- pageMeta
abstract PageMeta pageMeta(Type pageType, Obj[]? pageContext := null)Create
PageMetafor the given page type and context.(Note:
pageContextare the arguments to the@InitRendermethod, 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
pageContextas arguments to@InitRender.Note that
pageContextStrs are converted to their appropriate type via BedSheet'sValueEncoderservice.- renderPageMeta
abstract Obj renderPageMeta(PageMeta pageMeta)Manually renders the given
pageMeta.There should be no need to call this in normal Pillow usage.