Module
PuduLangDocgen.Theme
The default site look combined with template folder overrides
Types
| Name | Description |
|---|---|
Look |
Parsed layout and partials ready to render pages |
Functions
| Name | Description |
|---|---|
assets |
The stylesheet and script every site publishes. |
load |
The default templates with overrides applied. An override named `layout.html` replaces the layout and `partials/<name>.html` replaces or adds a partial; other files are ignored. Every template is parsed, and each one that does not parse is reported. |
page |
A page rendered through the layout with its view metadata. |
assets
fn assets() -> Array[Docgen.Artifact]
The stylesheet and script every site publishes.
Returns
Array[Docgen.Artifact]
load
fn load(overrides: &Array[(Str, Str)]) -> Result[Look, Array[Docgen.Diagnostic]]
The default templates with overrides applied. An override named layout.html replaces the
layout and partials/<name>.html replaces or adds a partial; other files are ignored.
Every template is parsed, and each one that does not parse is reported.
Parameters
overrides&Array[(Str, Str)]
Returns
Result[Look, Array[Docgen.Diagnostic]]
page
fn page(look: &Look, view: &Docgen.Meta) -> Str
A page rendered through the layout with its view metadata.
Parameters
look&Lookview&Docgen.Meta
Returns
Str