Structure

ItemsRenderingContext

struct ItemsRenderingContext<M> where M : Metadata

The rendering context passed to a listWriter(_:output:paginate:paginatedOutput:) renderer.

Contains all items from the processing step, optionally paginated.

Instance Properties

let allItems: [any AnyItem]

All items across all registered processing steps.

let items: [Item<M>]

All items from the same processing step (or the current page’s slice when paginated), in sorted order.

let outputPath: Path

The output path of the page being rendered.

let paginator: Paginator?

Pagination information, or nil if the writer is not paginated.

Relationships

Conforms To

AtomContext , Swift.Sendable