Expand description
Purpose: Provide the public template-loading API surface for built-in and custom task templates.
Responsibilities:
- Declare the
template::loaderchild modules. - Re-export the stable public API used by CLI surfaces and callers.
Scope:
- Thin facade only; implementation lives in sibling files under
template/loader/.
Usage:
- Import public template-loading helpers through
crate::templateorcrate::template::loader.
Invariants/Assumptions:
- The public API surface remains stable across the split.
- Custom-template precedence, validation, and substitution behavior remain unchanged.
Structs§
- Loaded
Template - Result of loading a template with context.
- Template
Info - Metadata for a template (used for listing).
Enums§
- Template
Error - Error type for template operations.
- Template
Source - Source of a loaded template.
Functions§
- get_
template_ context - Get the template context for inspection.
- list_
templates - List all available templates (built-in + custom).
- load_
template - Load a template by name.
- load_
template_ with_ context - Load a template by name with variable substitution.
- load_
template_ with_ context_ legacy - Load a template by name with variable substitution (legacy, non-strict).
- template_
exists - Check if a template exists (either custom or built-in).