Templating Utilities π§©ΒΆ
Strict Jinja renderers used by lookup plugins, library modules, and the YAML cache layer.
Scope πΒΆ
Modules in utils/templating/ MUST limit themselves to rendering {{ ... }} and {% ... %} constructs found in YAML values, lookups, and templated config strings.
Both renderers fail loudly when Jinja markers cannot be resolved so generated configs never silently leak unrendered placeholders.
Modules π¦ΒΆ
Module |
Engine |
When to use |
|---|---|---|
Ansibleβs internal |
When the caller already has Ansibleβs variable stack and wants tag-aware rendering with shortcuts for |
|
Standalone |
When the caller runs in a context where Templar can silently leave markers untouched (some lookup plugin entry points). Renders multiple passes so nested vars ( |
Example Imports βοΈΒΆ
from utils.templating.ansible import render_ansible_strict
from utils.templating.jinja import render_strict