Zum Inhalt springen

Linter und Formatter für Tera-Templates

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

Was ist Tera?

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

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

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