Linter und Formatter für Mustache-Templates
djLint lintet und formatiert Mustache-Templates. Setzen Sie das Profil handlebars, damit Regeln und Formatierung zu ihnen passen.
Über die Befehlszeile
Abschnitt betitelt „Über die Befehlszeile“djlint /path/to/templates --profile=handlebarsIn einer Konfigurationsdatei
Abschnitt betitelt „In einer Konfigurationsdatei“Konfigurieren Sie djLint in der Datei pyproject.toml, djlint.toml / .djlint.toml oder .djlintrc Ihres Projekts.
[tool.djlint]profile = "handlebars"profile = "handlebars"{ "profile": "handlebars" }