Tera 模板检查与格式化

djLint是一个 Tera 模板的代码检查与格式化工具!使用内置的预设配置(profile),充分利用djLint来检查并格式化你的模板。

什么是 Tera?

使用命令行

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

使用配置文件

在你项目中的 pyproject.toml、djlint.toml / .djlint.toml 或 .djlintrc 文件中配置 djLint。

[tool.djlint]
profile="tera"
profile="tera"
{ "profile": "tera" }
详情请参考 配置 章节