Zum Inhalt springen

Linter und Formatter für Handlebars-Templates

djLint lintet und formatiert Handlebars-Templates. Setzen Sie das Profil handlebars, damit Regeln und Formatierung zu ihnen passen.

Was ist Handlebars?

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

Konfigurieren Sie djLint in der Datei pyproject.toml, djlint.toml / .djlint.toml oder .djlintrc Ihres Projekts.

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