Keats / tera

A template engine for Rust based on Jinja2/Django

Home Page:http://keats.github.io/tera/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

A template engine for Rust based on Jinja2/Django

http://keats.github.io/tera/

License:MIT License


Languages

Language:Rust 99.8%Language:HTML 0.2%