コンテンツにスキップ

Mustache テンプレートのリンターとフォーマッター

djLint で Mustache テンプレートをリント・フォーマットできます。ルールとフォーマットがテンプレートに合うよう、handlebars プロファイルを設定してください。

Mustache とは?

ターミナルウィンドウ
djlint /path/to/templates --profile=handlebars

プロジェクトの pyproject.toml、djlint.toml / .djlint.toml、または .djlintrc ファイルで djLint を設定します。

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