Structure
PageRenderingContext
struct PageRenderingContextThe rendering context for template-driven pages created with createPage(_:using:).
Unlike other rendering contexts, this is not associated with any Item. It’s for pages that are purely template-driven, such as a homepage, search page, or 404 page.
Mentioned In
Instance Properties
let allItems: [any AnyItem]All items across all registered processing steps. When i18n is configured and a locale is set, this only contains items for that locale.
let generatedPages: [Path]Relative paths of all pages written by writers and earlier createPage calls.
let locale: SagaLocale?The locale of this rendering context, or nil when i18n is not configured.
let outputPath: PathThe output path of the page being rendered.
let translations: [SagaLocale : String]URLs for this page in all locales, keyed by locale. Empty when i18n is not configured.
Instance Methods
func asDictionary() -> [String : Any]Relationships
Conforms To
DictRenderingContext , Swift.Copyable , Swift.Sendable