Expand description
Jinja-lite template engine for prompt construction.
Supports {{ variable }} substitution with filters, {% if/elif/else/endif %} blocks,
{% for item in list %}...{% endfor %} loops, and {# comment #} removal.
Structs§
- Template
- A pre-parsed template that can be rendered repeatedly with different contexts.
- Template
Context - A variable binding context passed to
Template::render. - Template
Library - A named collection of pre-parsed templates.
Enums§
- Template
Error - Errors that can occur during template parsing or rendering.
- Template
Var - A dynamically-typed value that can be stored in a
TemplateContext.