106 releases (28 stable)
1.20.0 | May 27, 2024 |
---|---|
1.19.1 | Sep 3, 2023 |
1.19.0 | May 31, 2023 |
1.18.1 | Mar 15, 2023 |
0.1.2 | Jun 5, 2016 |
#2 in Template engine
474,086 downloads per month
Used in 803 crates
(455 directly)
500KB
12K
SLoC
Tera
Tera is a template engine inspired by Jinja2 and the Django template language.
<title>{% block title %}{% endblock title %}</title>
<ul>
{% for user in users %}
<li><a href="{{ user.url }}">{{ user.username }}</a></li>
{% endfor %}
</ul>
It does not aim to be 100% compatible with them but has many of the Jinja2/Django filters and testers.
Documentation
API documentation is available on docs.rs.
Tera documentation is available on its site.
SemVer
This project follows SemVer only for the public API, public API here meaning functions appearing in the docs. Some features, like accessing the AST, are also available but breaking changes in them can happen in any versions.
Dependencies
~6–16MB
~209K SLoC