Linter und Formatter für Askama-Templates
djLint lintet und formatiert Askama-Templates. Setzen Sie das Profil askama, damit Regeln und Formatierung zu ihnen passen.
Über die Befehlszeile
Abschnitt betitelt „Über die Befehlszeile“djlint /path/to/templates --profile=askamaIn 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 = "askama"profile = "askama"{ "profile": "askama" }