Zum Inhalt springen

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.

Was ist Askama?

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

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

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