Salta ai contenuti

Linter e formattatore per template Mustache

djLint analizza e formatta i template Mustache. Imposta il profilo handlebars per adattare le regole e la formattazione a questi template.

Che cos’è Mustache?

Finestra del terminale
djlint /path/to/templates --profile=handlebars

Configura djLint nel file pyproject.toml, djlint.toml / .djlint.toml o .djlintrc del tuo progetto.

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