Skip to content

Mustache template linter and formatter

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

What is Mustache?

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" }