Jinja Template Linter and Formatter

djLint lints and formats Jinja templates. Set the jinja profile so the rules and the formatting fit them.

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 project’s pyproject.toml, djlint.toml / .djlint.toml, or .djlintrc file.

[tool.djlint]
profile = "jinja"
profile = "jinja"
{ "profile": "jinja" }