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

#3 in Template engine

Download history 98272/week @ 2024-07-30 98481/week @ 2024-08-06 101985/week @ 2024-08-13 112766/week @ 2024-08-20 108952/week @ 2024-08-27 105724/week @ 2024-09-03 109777/week @ 2024-09-10 106701/week @ 2024-09-17 116168/week @ 2024-09-24 121641/week @ 2024-10-01 101138/week @ 2024-10-08 123694/week @ 2024-10-15 117541/week @ 2024-10-22 111184/week @ 2024-10-29 106116/week @ 2024-11-05 118513/week @ 2024-11-12

474,055 downloads per month
Used in 815 crates (462 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–17MB
~210K SLoC