Przejdź do głównej zawartości

Linter i formater szablonów Handlebars

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

Czym jest Handlebars?

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" }