Askama Template Linter and Formatter

djLint est un linter de modèle Askama et un formateur de modèle Askama ! Profitez du profil pré-construit lorsque vous lintez et formatez vos modèles avec djLint.

C’est quoi Askama?

Utilisation de la ligne de commande

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

Ou, utiliser un fichier de configuration

Configurez djLint dans le fichier pyproject.toml, djlint.toml / .djlint.toml ou .djlintrc de votre projet.

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