(sigil publish context)
(sigil publish context) - Render Context
Shared context struct for pipeline and transforms. Separated into its own module to avoid circular dependencies.
Exports
render-contextprocedureRender context passed to themes and transforms during rendering.
Contains all the information needed to render a content item:
- The pipeline configuration
- All content items (for cross-references)
- Navigation structure
- Reference index for resolving refs
- The current item being rendered
render-context?procedureTest if a value is a render-context struct.
render-context-pipelineprocedureGet the pipeline field of a render-context struct.
render-context-itemsprocedureGet the items field of a render-context struct.
render-context-ref-indexprocedureGet the ref-index field of a render-context struct.
render-context-current-itemprocedureGet the current-item field of a render-context struct.
render-context-output-typeprocedureGet the output-type field of a render-context struct.