Expand description
Purpose: Provide the public template-variable API surface for validation, context detection, and substitution.
Responsibilities:
- Declare the
template::variableschild modules. - Re-export the stable public API used by template loading and callers.
Scope:
- Thin facade only; implementation lives in sibling files under
template/variables/.
Usage:
- Import public types and helpers through
crate::templateorcrate::template::variables.
Invariants/Assumptions:
- The public API surface remains stable across the split.
- Validation, detection, and substitution behavior lives in focused companions and must remain unchanged.
Structs§
- Template
Context - Context for template variable substitution.
- Template
Validation - Result of template validation.
Enums§
- Template
Warning - Warning types for template validation.
Functions§
- detect_
context - Detect context from target path and git repository (legacy, ignores warnings).
- detect_
context_ with_ warnings - Detect context from target path and git repository.
- substitute_
variables - Substitute variables in a template string.
- substitute_
variables_ in_ task - Substitute variables in all string fields of a Task.
- validate_
task_ template - Validate a template task and collect warnings.