# Askama

A template rendering engine based on Jinja, generating type-safe Rust code at compile time.

Repository: https://github.com/askama-rs/askama
Canonical: https://ross.abutalabs.com/products/askama
Homepage: https://askama.rs
Language: Rust
License: Apache-2.0
License Family: permissive
Topics: html, jinja, rust, template-engine
Last push: 2026-08-23T11:53:31+00:00

## Health v2 (maintenance only)
Score: 84/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 81, longevity 57
- inputs: {"age_days": 807, "days_push": 10, "days_rel": 126, "gap_med": 12.0, "n_releases_24m": 15}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1178, forks 64 (observed 2026-08-28T04:03:53.115623+00:00)

## What it is
Askama is a Rust template library providing type-safe, compiled Jinja-like templates. Templates are parsed and compiled into Rust code at build time, catching errors before runtime.

## Use cases
- render html pages in a rust web app
- type-safe jinja2-style templates for rust
- compile templates at build time to catch errors
- generate html emails from templates
- serve server-rendered pages with actix or axum

## When to choose
- you want Jinja2-like syntax with compile-time type checking in Rust
- you need fast template rendering with no runtime parsing
- you are building server-rendered web applications in Rust

## When to avoid
- you need runtime-editable templates loaded dynamically
- you want a non-Rust templating ecosystem or hot-reloading of templates

## Facets
- artifact type: library
- maturity: active
- function: templating
- domain: web-development, frontend
- platform: rust, cross-platform
- tags: jinja2, compile-time-templates, type-safe, custom-derive, html

## Member repositories
- askama-rs/askama (main) score 84
- askama-rs/askama-old (mirror) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:53.115623+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:35:01.796332+00:00, confidence not recorded.
  - readme: https://github.com/askama-rs/askama (fetched 2026-08-28T04:03:53.115623+00:00, sha 88e5caa21c19)
  - registry_crates: https://crates.io/api/v1/crates/askama (fetched 2026-08-29T09:29:18.309915+00:00, sha 2faf9012032b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
