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
10
11
12
13
14
15
16
17
<h1>Hello</h1>

{% if my_var %}
    {{ my_var }}
{% else %}
    Sorry, my_var isn't defined.
{% endif %}

{% if not show_all %}
    See more
{% endif %}
{{ "{{ hey }}" }}

{% block content %}
{% endblock content %}

{{ <hello_world greeting="世界" /> }}