Expand description
template — template-rendering.md reference implementation.
render_template(template, params): replace {param} placeholders with bound
values (strict). {result.*} / {item.*} are resolved by a different layer
and are out-of-scope Failures here.
Normative points:
- placeholder =
{+ one-or-more non-brace chars +}(no escaping). - single left-to-right pass; substituted text is not re-processed.
- strict missing-key: unbound param → Failure (never empty string).
- null param → Failure (present = key in params && value != null).
- stringify follows Python str(value): bool → True/False, float → py_float_repr.
Structs§
Enums§
Functions§
- render_
template - Render
{param}placeholders strictly. - resolve_
partial - resolvePartial — explain/dry-run variant: substitutes
{param}, leaves{result.*}and unbound params in place (template-rendering.md §3.3).