Twig Template Linter and Formatter
djLint is a twig template linter and a twig template formatter! Take advantage of the pre-built profile when linting and formatting your templates with djLint.
Pebble (Java) templates are Twig-compatible, so use this same profile for them.
Using the Command Line
djlint /path/to/templates --profile=nunjucks
Or, Use a Config File
Configure djLint in your project’s pyproject.toml, djlint.toml / .djlint.toml, or .djlintrc file.
[tool.djlint]
profile="nunjucks"
profile="nunjucks"
{ "profile": "nunjucks" }