Skip to content

Handlebars template linter and formatter

djLint lints and formats Handlebars templates. Set the handlebars profile so the rules and the formatting fit them.

What is Handlebars?

Terminal window
djlint /path/to/templates --profile=handlebars

Configure djLint in your project’s pyproject.toml, djlint.toml / .djlint.toml, or .djlintrc file.

pyproject.toml
[tool.djlint]
profile = "handlebars"
djlint.toml / .djlint.toml
profile = "handlebars"
.djlintrc
{ "profile": "handlebars" }