Skip to content
/ tera Public

A template engine for Rust based on Jinja2/Django

License

Notifications You must be signed in to change notification settings

Keats/tera

Folders and files

NameName
Last commit message
Last commit date
Feb 4, 2024
Mar 8, 2023
Mar 18, 2025
Feb 16, 2023
Dec 4, 2019
May 27, 2024
Feb 16, 2023
Apr 28, 2016
Mar 6, 2021
May 29, 2024
May 27, 2024
Jul 17, 2015
Aug 20, 2023
Aug 14, 2022
Aug 29, 2018

Repository files navigation

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.