87 releases (9 stable)

1.5.0 Aug 10, 2020
1.4.0 Jul 24, 2020
1.3.1 Jun 9, 2020
1.2.0 Mar 29, 2020
0.1.2 Jun 5, 2016

#2 in Template engine

Download history 10554/week @ 2020-06-01 10281/week @ 2020-06-08 10131/week @ 2020-06-15 10735/week @ 2020-06-22 7505/week @ 2020-06-29 7685/week @ 2020-07-06 7026/week @ 2020-07-13 6803/week @ 2020-07-20 7082/week @ 2020-07-27 8564/week @ 2020-08-03 9551/week @ 2020-08-10 8214/week @ 2020-08-17 8328/week @ 2020-08-24 8694/week @ 2020-08-31 7772/week @ 2020-09-07 8534/week @ 2020-09-14

35,623 downloads per month
Used in 129 crates (98 directly)

MIT license

320KB
7.5K 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.

Community

There's a gitter community chat (not managed/used by @Keats): https://gitter.im/Tera-templates/community

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

~4.5–6MB
~137K SLoC