const mixinafPillow::Pages

afPillow::Pages

(Service) - Methods for discovering Pillow pages and returning PageMeta instances.

callPageEvent

Source

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

Source

@Operator
abstract PageMeta get(Type pageType, Obj[]? pageContext := null)

Create PageMeta for the given page type and context.

Convenience / alias for pageMeta(...).

pageMeta

Source

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

Source

abstract Type[] pageTypes()

Returns all Pillow page types.

renderPage

Source

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's ValueEncoder service.

renderPageMeta

Source

abstract Obj renderPageMeta(PageMeta pageMeta)

Manually renders the given pageMeta.

There should be no need to call this in normal Pillow usage.