Crates.io | tera |
lib.rs | tera |
version | 1.20.0 |
source | src |
created_at | 2016-04-04 16:03:33.335054 |
updated_at | 2024-05-27 19:14:03.867994 |
description | Template engine based on Jinja2/Django templates |
homepage | https://keats.github.io/tera/ |
repository | https://github.com/Keats/tera |
max_upload_size | |
id | 4672 |
size | 543,051 |
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.
API documentation is available on docs.rs.
Tera documentation is available on its site.
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.