Skip to main content

Module package

Module package 

Source
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§

BRIEF_FILE
MAX_BYTES
TEMPLATE_FILE

Functions§

load_dir
The template in dir, checked as if its folder were named folder, 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; folder is 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.