# pallets/jinja

A very fast and expressive template engine.

Repository: https://github.com/pallets/jinja
Canonical: https://ross.abutalabs.com/products/jinja
Homepage: https://jinja.palletsprojects.com
Language: Python
License: BSD-3-Clause
License Family: permissive
Topics: python, template-engine, jinja, jinja2, templates, pallets
Last push: 2025-06-14T20:35:04+00:00

## Health v2 (maintenance only)
Score: 42/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 26, release rhythm 28, longevity 100
- inputs: {"age_days": 5799, "days_push": 445, "days_rel": 546, "gap_med": 74, "n_releases_24m": 2}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 11750, forks 1798 (observed 2026-08-28T04:10:49.661600+00:00)

## What it is
Jinja is a fast, expressive, and extensible templating engine for Python that compiles templates to optimized Python code. It supports template inheritance, macros, autoescaping, sandboxed rendering, async support, and i18n.

## Use cases
- render html pages for a flask or django app
- generate text documents from templates like csv or latex
- safely render untrusted user templates in a sandbox
- create reusable page layouts with template inheritance
- generate emails or config files from data
- add internationalization to templates with babel

## When to choose
- you need a fast, mature Python template engine with rich features
- you want autoescaping to prevent XSS in HTML output
- you need sandboxed rendering of untrusted templates
- you want template inheritance, macros, and extensibility

## When to avoid
- you need client-side JavaScript templating
- you only need simple string substitution without logic (string.Template suffices)
- your project is not Python-based

## Facets
- artifact type: library
- maturity: stable
- function: templating, web-framework
- domain: web-development, developer-tools, documentation
- platform: python, cross-platform
- tags: template-engine, html-templates, autoescaping, sandboxing, jinja2, pallets

## Member repositories
- pallets/jinja (main) score 42

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:49.661600+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-29T17:15:21.050596+00:00, confidence not recorded.
  - readme: https://github.com/pallets/jinja (fetched 2026-08-28T04:10:49.661600+00:00, sha 171bcabd913f)
  - homepage: https://jinja.palletsprojects.com (fetched 2026-08-29T08:13:29.993923+00:00, sha 9c8d88c6d2a6)
  - site_page: https://jinja.palletsprojects.com/en/stable/intro (fetched 2026-08-29T08:13:30.003516+00:00, sha b89fccf3cc2c)
  - site_page: https://jinja.palletsprojects.com/en/stable/templates (fetched 2026-08-29T08:13:30.005689+00:00, sha d83a7d76268a)
  - site_page: https://jinja.palletsprojects.com/en/stable/faq (fetched 2026-08-29T08:13:30.009974+00:00, sha 5228c2f0df1f)
- Data as of 2026-08-30T08:39:29.467469+00:00.
