105 releases (27 stable)

1.19.1 Sep 3, 2023
1.19.0 May 31, 2023
1.18.1 Mar 15, 2023
1.17.1 Sep 19, 2022
0.1.2 Jun 5, 2016

#3 in Template engine

Download history 52062/week @ 2023-12-23 66946/week @ 2023-12-30 80057/week @ 2024-01-06 79868/week @ 2024-01-13 82245/week @ 2024-01-20 79033/week @ 2024-01-27 80957/week @ 2024-02-03 83206/week @ 2024-02-10 81183/week @ 2024-02-17 84934/week @ 2024-02-24 85977/week @ 2024-03-02 80453/week @ 2024-03-09 84332/week @ 2024-03-16 91201/week @ 2024-03-23 95891/week @ 2024-03-30 68428/week @ 2024-04-06

353,467 downloads per month
Used in 697 crates (394 directly)

MIT license

500KB
12K SLoC

Tera

Actions Status Crates.io Docs Gitter

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
~176K SLoC