Twig Template Linter and Formatter

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

What is Twig?

Using the Command Line

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

Or, Use a Config File

Configure djLint in your projects pyproject.toml.

[tool.djlint]
profile="nunjucks"
Edit this page Updated Aug 29, 2024