# Keats/tera

A template engine for Rust based on Jinja2/Django

Repository: https://github.com/Keats/tera
Canonical: https://ross.abutalabs.com/products/tera
Homepage: http://keats.github.io/tera/
Language: Rust
License: MIT
License Family: permissive
Topics: template-engine, jinja2, django, rust-library
Last push: 2026-08-26T21:10:10+00:00

## Health v2 (maintenance only)
Score: 77/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 35, longevity 100
- inputs: {"age_days": 4065, "days_push": 7, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4296, forks 337 (observed 2026-08-28T04:08:41.521722+00:00)

## What it is
Tera is a template engine for Rust inspired by the Jinja2 and Django template languages. It lets developers define templates with inheritance, loops, filters, and custom functions, and render them with serde-based contexts.

## Use cases
- render HTML pages in a Rust web app
- generate emails from templates in Rust
- use Jinja2-style templates in a Rust project
- generate static site content from templates
- render configuration files or reports from data

## When to choose
- you are writing Rust and want familiar Jinja2/Django-style templating
- you need template inheritance, filters, and custom functions in Rust
- you want a lightweight, mature template engine with serde integration

## When to avoid
- you need exact Jinja2 compatibility or Python-specific features
- your project is not in Rust
- you need runtime user-editable templates with sandboxing guarantees

## Facets
- artifact type: library
- maturity: stable
- function: templating
- domain: web-development, developer-tools
- platform: rust, cross-platform
- tags: template-engine, jinja2, django, html, rust-library

## Member repositories
- Keats/tera (main) score 77

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:41.521722+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:21:52.243789+00:00, confidence not recorded.
  - readme: https://github.com/Keats/tera (fetched 2026-08-28T04:08:41.521722+00:00, sha 2f45204f6e5a)
  - homepage: http://keats.github.io/tera/ (fetched 2026-08-29T09:11:02.898794+00:00, sha 17ed5f5aa66a)
  - registry_crates: https://crates.io/api/v1/crates/tera (fetched 2026-08-29T09:11:02.967846+00:00, sha 03e6f608e488)
- Data as of 2026-08-30T08:39:29.467469+00:00.
