Expand description
Template evaluation engine.
The evaluator walks a parsed Template AST and produces a string
output. It resolves variables and dispatches processor/command calls
through the provided EvalContext and Registry.
Temporary scopes (e.g. foreach loop bindings) are managed internally.
The host’s EvalContext only sees named scope operations like "global"
and "local".
Structs§
- Eval
Options - Configuration for resource limits, cancellation, and error handling during template evaluation.
- Simple
Context - A minimal
EvalContextimplementation for testing and single-file use.
Traits§
- Eval
Context - Trait implemented by the host application to provide state and side effects to the weaver-lang evaluator.
Functions§
- eval_
expr_ value - Evaluate a parsed expression and return its
Valuedirectly. - evaluate
- Evaluate a template against a context and registry, producing the final string output.
- evaluate_
with_ options - Evaluate a template with custom options for resource limits, cancellation, and lenient mode.