Expand description
The bundled generic partials, plus locating/validating an operator’s template directory.
Partials are required, operator-owned files. init materialises the
bundled defaults below; export checks that the required set is present
before rendering and otherwise fails with a pointer to wisp init.
Constants§
- DEFAULT_
DIR - Default template directory, relative to the registry root.
- LOGO_
SVG - The bundled default logo (the secunit shield).
- TYPST_
PARTIALS - The bundled generic Typst partials, embedded into the binary.
Functions§
- bundled
- The bundled partials for a format. HTML partials are not bundled yet (the HTML backends are opt-in / not wired), so requesting them is an error.
- detect_
format - Detect which partial format a template directory holds, by probing for the format-defining theme file.
- missing_
partials - Confirm every required partial for
formatexists indir. Returns the list of missing filenames (empty == complete). - require_
complete - Fail with an actionable error if the template directory is absent or incomplete. This is the gate that makes the partials required.
- resolve_
dir - Resolve the template directory: explicit override, else
<root>/templates/wisp.