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?

Using the command line

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

Or, use a config file

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

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