83 releases (5 stable)

✓ Uses Rust 2018 edition

1.2.0 Mar 29, 2020
1.0.2 Jan 13, 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 4888/week @ 2019-12-15 3513/week @ 2019-12-22 3715/week @ 2019-12-29 5729/week @ 2020-01-05 4592/week @ 2020-01-12 6358/week @ 2020-01-19 5676/week @ 2020-01-26 6268/week @ 2020-02-02 6184/week @ 2020-02-09 7255/week @ 2020-02-16 7225/week @ 2020-02-23 7110/week @ 2020-03-01 6446/week @ 2020-03-08 6474/week @ 2020-03-15 7840/week @ 2020-03-22 7492/week @ 2020-03-29

26,722 downloads per month
Used in 103 crates (79 directly)

MIT license

435KB
11K SLoC

Tera

Actions Status Crates.io Docs

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.5MB
~135K SLoC