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

Download history 90770/week @ 2024-07-17 97346/week @ 2024-07-24 97380/week @ 2024-07-31 101674/week @ 2024-08-07 99094/week @ 2024-08-14 116884/week @ 2024-08-21 104458/week @ 2024-08-28 112826/week @ 2024-09-04 103631/week @ 2024-09-11 112747/week @ 2024-09-18 115368/week @ 2024-09-25 117226/week @ 2024-10-02 104166/week @ 2024-10-09 124094/week @ 2024-10-16 116003/week @ 2024-10-23 110071/week @ 2024-10-30

474,086 downloads per month
Used in 803 crates (455 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
~209K SLoC