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

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

Mustache とは?

コマンドラインを使う

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

または、設定ファイルを使う

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

[tool.djlint]
profile = "handlebars"
profile = "handlebars"
{ "profile": "handlebars" }