tera 2.0.0-alpha.3

A template engine for Rust based on Jinja2/Django
Documentation
1
2
3
4
5
6
7
8
9
{{ description }}
{%- set foo = 'def' %}
{{ 'abcdef' == 'abc' ~ foo }}
{{ 'abc/def' == 'abc/' ~ 'def' }}
{{ 'abc/def' == 'abc/' ~ foo }}
escaped: {{ [some_html] }}
safe: {{ [some_html] | safe }}
escaped: {{ {"a": some_html} }}
safe: {{ {"a": some_html} | safe }}