Mustache 模板检查与格式化
djLint是一个 mustache 模板的代码检查与格式化工具!使用内置的预设配置(profile),充分利用djLint来检查并格式化你的模板。
使用命令行
djlint /path/to/templates --profile=handlebars
使用配置文件
在你项目中的 pyproject.toml、djlint.toml / .djlint.toml 或 .djlintrc 文件中配置 djLint。
[tool.djlint]
profile="handlebars"
profile="handlebars"
{ "profile": "handlebars" }
详情请参考 配置 章节