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 96701/week @ 2024-08-02 102491/week @ 2024-08-09 105090/week @ 2024-08-16 115515/week @ 2024-08-23 103885/week @ 2024-08-30 113639/week @ 2024-09-06 98846/week @ 2024-09-13 117708/week @ 2024-09-20 123713/week @ 2024-09-27 106228/week @ 2024-10-04 112086/week @ 2024-10-11 121188/week @ 2024-10-18 114012/week @ 2024-10-25 108824/week @ 2024-11-01 122027/week @ 2024-11-08 159843/week @ 2024-11-15

525,778 downloads per month
Used in 817 crates (464 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
~212K SLoC