sigildocs

(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 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

Test if a value is a render-context struct.

Get the pipeline field of a render-context struct.

Get the items field of a render-context struct.

Get the navigation field of a render-context struct.

Get the ref-index field of a render-context struct.

Get the current-item field of a render-context struct.

Get the output-type field of a render-context struct.