Test Jinja2-style templates with variables, loops, conditionals, and filters
Output will appear here as you type
| Syntax | Description | Example |
|---|---|---|
{{ var }} | Output a variable | {{ name }} |
{{ var | filter }} | Apply a filter | {{ name | upper }} |
{% for x in list %} | Loop over items | {% for i in items %}{{ i }}{% endfor %} |
{% if cond %} | Conditional block | {% if show %}yes{% else %}no{% endif %} |
{{ var | default("x") }} | Default value | {{ missing | default("N/A") }} |
{{ var | join(", ") }} | Join array | {{ tags | join(", ") }} |
Filters: upper, lower, capitalize, title, trim, length, reverse, sort, first, last, join, default, replace, truncate, round, abs, int, float