tera

A template engine for Rust based on Jinja2/Django

Github星跟蹤圖

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.

主要指標

概覽
名稱與所有者Keats/tera
主編程語言Rust
編程語言Rust (語言數: 2)
平台
許可證MIT License
所有者活动
創建於2015-07-17 19:40:53
推送於2025-03-18 21:54:13
最后一次提交2025-03-18 21:53:51
發布數37
最新版本名稱v1.20.0 (發布於 )
第一版名稱v0.2.0 (發布於 )
用户参与
星數3.9k
關注者數27
派生數309
提交數1k
已啟用問題?
問題數582
打開的問題數166
拉請求數285
打開的拉請求數21
關閉的拉請求數76
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?