Zum Inhalt springen

Linter und Formatter für Liquid-Templates

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

Was ist Liquid?

Ein Profil deckt alle Liquid-Dialekte ab: Shopify-Themes, Jekyll, LiquidJS (Eleventy) und Fluid (Orchard Core).

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

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

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