Structure
PartitionedRenderingContext
struct PartitionedRenderingContext<T, M> where T : Comparable, T : CustomStringConvertible, T : Sendable, M : MetadataThe rendering context passed to a partitionedWriter(_:output:paginate:paginatedOutput:partitioner:) renderer, as well as the convenience tagWriter(_:output:paginate:paginatedOutput:tags:) and yearWriter(_:output:paginate:paginatedOutput:) renderers.
Contains items grouped by a partition key (such as a tag or year), optionally paginated.
Instance Properties
let allItems: [any AnyItem]All items across all registered processing steps.
let items: [Item<M>]The items in this partition (or the current page’s slice when paginated), in sorted order.
let key: TThe partition key for this group of items.
let outputPath: PathThe 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