Title here
Summary here
Tera is a template engine for Rust inspired by Jinja2 and the Django template language.
Basic example:
<title>{% block title %}{% endblock title %}</title>
<ul>
{% for user in users -%}
<li><a href="{{ user.url }}">{{ user.username }}</a></li>
{%- endfor %}
</ul>
tera.full_reload()?;
tera.add_raw_template("hello.html", "the body")?;
Tera::one_off(user_tpl, context, true);
__tera_context
: Magical variable is available in every template if you want to print the current context{{ __tera_context }}
<h1>Hello {{ user.name | safe }} !</h1>
{{ get_env(name="SECRET") }} # Leak environment variables