Skip to main content

Module page

Module page 

Source

Structs§

I18nOpts
i18n options for page rendering, passed as JSON.
LayoutChainEntry
One entry in a layout chain (outer to inner order). Each layout owns a set of loader data keys.
PageConfig
Configuration for page assembly, passed as JSON.

Functions§

build_seam_data
Build the __SEAM_DATA__ JSON object with correct per-layout _layouts grouping.
filter_i18n_messages
Filter i18n messages to only include keys in the allow list. Empty list means include all messages.
flatten_for_slots
Flatten keyed loader results for slot resolution: spread nested object values to the top level so slots like <!--seam:tagline--> can resolve from data like {page: {tagline: "..."}}.
i18n_query
Process an i18n query: look up requested keys from locale messages, falling back to key itself when missing.
inject_data_script
Inject a <script> tag with JSON data before </body>.
inject_head_meta
Inject page-level head metadata after <meta charset="utf-8">.
inject_html_lang
Set <html lang="..."> attribute.