pallets

jinja: Render Python-Powered Templates

Jinja is a fast, expressive, extensible template engine for Python applications. It turns templates and supplied data into documents, with features such as inheritance, autoescaping, sandboxing, and asynchronous rendering.

InactivePythonBSD-3-ClauseLibraryDeveloper ToolsWeb Development
Stars
11.8k
Forks
1.9k
Stars, last 30 days
+26
Last commit
1.4 years ago
Contributors
100+

Our take

Inactiveno commits in over a year

Health score

50/100

How it is scored
Activity
19
Community
80
Issues
82
Pull requests
20

+26 stars in the last 30 days

  • Closes issues faster than 82% of the projects we track
  • More contributors than 78% of the projects we track

Jinja is a mature, widely used Python templating library with a recent release but no commits in over a year, so teams should weigh its established feature set against the reported inactive maintenance status.

Good fit if

  • Your application is written in Python and needs reusable, expressive templates.
  • You need built-in support for autoescaping, sandboxing, asynchronous rendering, or template inheritance.
  • You can adopt a BSD-3-Clause licensed dependency and have no requirement for frequent upstream changes.

Look elsewhere if

  • You need a project with ongoing commits or recent release activity, since the repository is marked inactive and has had no commits in over a year.
  • Your application does not run on Python 3.10 or newer.
  • You need a template engine for a different runtime rather than Python.
All health signals
Last commit2025-06-14 (1.4 years ago)
Commits, last 90 days0
Releases, last 12 months0 (latest 3.1.6, 2025-03-05)
Contributors100+ (top contributor: 48% of commits)
Issues closed, last 90 days10 (typically closed in 0 days)
Pull requests merged, last 90 days0
Project age16 years

Checked on 2026-11-06 with the GitHub API.

Project history

Daily GitHub snapshots since Oct 7, 2026. History covers stars and forks; health signals are not tracked historically.

Selected snapshot

Stars

11,820

Forks

1,964

Change since Nov 16, 2026: +1 stars·+38 forks

Overview

Jinja is a fast, expressive, extensible templating engine for Python. It lets application developers provide data to templates that produce documents, while giving template authors a Python-like syntax and tools to organize presentation separately from application logic.

It is suited to Python projects that generate HTML or other text-based output and need reusable templates. Its autoescaping and sandboxed environment support safer rendering scenarios, while its extension points allow applications to customize template behavior.

Key Features

  • Inherit from base templates and include shared templates.
  • Define and import macros for reusable template logic.
  • Autoescape HTML output to help protect against untrusted input.
  • Use a sandboxed environment to render untrusted templates.
  • Render asynchronously and call async functions from templates.
  • Extend templates with custom filters, tests, functions, and syntax.
  • Compile templates to optimized Python code, with caching or ahead-of-time compilation.
  • Get exceptions that identify the corresponding template line.

Use Cases

  • Python web applications can render HTML pages from reusable base layouts and page-specific blocks.
  • Teams building server-rendered sites can let template designers work with presentation logic without putting all rendering details in application code.
  • Applications that accept user-provided templates can consider the sandboxed environment, while assessing its security requirements for their own use.
  • Python services can generate text-based documents from data and reuse common template fragments.
  • Async applications can render templates that call asynchronous functions.

What you need

Detected in the repository

  • Python >=3.10 (from pyproject.toml)
  • A test suite and automated checks on GitHub Actions

License in plain words

BSD-3-Clausepermissive

  • Commercial use: yes
  • Modify and redistribute: yes
  • You must keep: the copyright and license notice; the authors' names cannot endorse your product
  • Share your changes: no

A summary, not legal advice: the LICENSE file is what applies.

Getting Started

Install Jinja with pip:

pip install Jinja2

See the README and documentation for usage details.

Considerations

The repository is marked inactive because it has had no commits in over a year, although it has a recent stable release and issues have been closed during the measured period. The project has a broad contributor base, with no reported dependence on one person. Check whether its maintenance pace meets your needs before adopting it for a dependency that requires rapid fixes. Jinja requires Python 3.10 or newer. The repository uses the BSD-3-Clause license; review its terms for your distribution and use.

Found this useful?

Share it with someone who would like jinja.