Przejdź do głównej zawartości

Linter i formater szablonów Mustache

djLint lintuje i formatuje szablony Mustache. Ustaw profil handlebars, aby reguły i formatowanie były do nich dopasowane.

Czym jest Mustache?

Okno terminala
djlint /path/to/templates --profile=handlebars

Skonfiguruj djLint w pliku pyproject.toml, djlint.toml / .djlint.toml lub .djlintrc swojego projektu.

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