Expand description
A template package, in a folder or compiled in: its files, its content hash and its signature (docs/specs/SPEC_JOBS_AND_TEMPLATES_2026_10_24.md §5.4).
A template is data, so a package holds only its known files, at its top
level. The content hash is the widgets’ (widget::packages::package_hash)
over every file except template.sig, which signs it.
Structs§
- Package
- A template, read and checked.
Constants§
Functions§
- load_
dir - The template in
dir, checked as if its folder were namedfolder, with its signature verified. - load_
embedded - A compiled-in template: never signed, it is part of the app.
- parse
- Parse and check a template from its files (path → bytes), its signature
left out;
folderis the name of the folder it is in. - read_
files - The files of the template folder
dir, without its signature: no links, no folders, within the size limit.