#template #html #django #markup #jinja2

tera-v1

Template engine based on Jinja2/Django templates

1 release (0 unstable)

✓ Uses Rust 2018 edition

1.0.0-alpha.4 Jan 29, 2019

#87 in Template engine


Used in torchbear

MIT license

370KB
9K SLoC

Razor 9K SLoC // 0.1% comments PSL Assertion 193 SLoC // 0.2% comments

Tera

Build Status Build 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>

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 minor versions.

Dependencies

~9MB
~194K SLoC