Structure

ItemRenderingContext

struct ItemRenderingContext<M> where M : Metadata

The rendering context passed to an itemWriter(_:) renderer.

Contains the single item being rendered, along with all items from the same processing step, all items across all steps, neighboring items for navigation, and any unhandled files (resources) in the same folder as the item.

Instance Properties

let allItems: [any AnyItem]

All items across all registered processing steps.

let item: Item<M>

The item being rendered.

let items: [Item<M>]

All items from the same processing step, in sorted order.

let resources: [Path]

Unhandled files in the same folder as the item, such as images or other static files.

Relationships

Conforms To

Swift.Sendable