Skip to content
HomePagesHomePages template kit

SiteView

The runtime read-view a rule receives: ONE FLAT compose-key namespace spanning every page (`site.<composeKey>.<slot>`), each entry holding that instance's current slot values.

The runtime read-view a rule receives: ONE FLAT compose-key namespace spanning every page (site.<composeKey>.<slot>), each entry holding that instance’s current slot values. A shared instance appears once however many pages render it. Renaming a slot breaks the build, since the inner keys are the section schema’s real slot keys.

Import from @homepages/template-kit.

export type SiteView<Sections extends Record<string, SectionInstanceHandle>> = {
readonly [K in keyof Sections]: {
readonly [S in keyof Sections[K]["slots"]]: unknown;
};
};