85 releases (7 stable)

✓ Uses Rust 2018 edition

1.3.1 Jun 9, 2020
1.2.0 Mar 29, 2020
1.0.1 Dec 18, 2019
1.0.0-beta.20 Nov 26, 2019
0.1.2 Jun 5, 2016

#2 in Template engine

Download history 6648/week @ 2020-03-16 7729/week @ 2020-03-23 8033/week @ 2020-03-30 7370/week @ 2020-04-06 7473/week @ 2020-04-13 7538/week @ 2020-04-20 7254/week @ 2020-04-27 7031/week @ 2020-05-04 7522/week @ 2020-05-11 6355/week @ 2020-05-18 7512/week @ 2020-05-25 10554/week @ 2020-06-01 10281/week @ 2020-06-08 10131/week @ 2020-06-15 10735/week @ 2020-06-22 7216/week @ 2020-06-29

32,102 downloads per month
Used in 119 crates (90 directly)

MIT license

445KB
11K 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
~132K SLoC