Jinja Template Linter and Formatter

djLint is a jinja template linter and a jinja template formatter! Take advantage of the pre-build profile when linting and formatting your templates with djLint.

What is Jinja?

MiniJinja templates are fully Jinja2-compatible, so use this same jinja profile.

HubSpot’s Jinjava templates are also jinja-style, so use this profile for them too.

Using the Command Line

djlint /path/to/templates --profile=jinja

Or, Use a Config File

Configure djLint in your projects pyproject.toml.

[tool.djlint]
profile="jinja"
Edit this page Updated Aug 7, 2026