tera 2.0.0

A template engine for Rust based on Jinja2/Django
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{% component copyright() -%}
{#- artificial macro -#}
© 2017-2023 Vincent Prouillet
{%- endcomponent %}


{% component unordered_list(items) %}
{# reimplenting <ol> for no reason #}
<ul>
{% for item in items %}
    <li>{{ loop.index }}. {{item}}</li>
{% endfor %}
</ul>
{% endcomponent %}