tera

A template engine for Rust based on Jinja2/Django

Github stars Tracking Chart

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.

Main metrics

Overview
Name With OwnerKeats/tera
Primary LanguageRust
Program languageRust (Language Count: 2)
Platform
License:MIT License
所有者活动
Created At2015-07-17 19:40:53
Pushed At2025-03-18 21:54:13
Last Commit At2025-03-18 21:53:51
Release Count37
Last Release Namev1.20.0 (Posted on )
First Release Namev0.2.0 (Posted on )
用户参与
Stargazers Count3.9k
Watchers Count27
Fork Count309
Commits Count1k
Has Issues Enabled
Issues Count582
Issue Open Count166
Pull Requests Count285
Pull Requests Open Count21
Pull Requests Close Count76
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private