Linter et formateur de templates Go
djLint linte et formate les templates Go. Utilisez le profil golang pour adapter les règles et le formatage à ces templates.
Les templates Go (text/template, html/template) servent aussi aux thèmes Hugo et aux charts Helm : utilisez ce même profil pour eux.
En ligne de commande
Section intitulée « En ligne de commande »djlint /path/to/templates --profile=golangDans un fichier de configuration
Section intitulée « Dans un fichier de configuration »Configurez djLint dans le fichier pyproject.toml, djlint.toml / .djlint.toml ou .djlintrc de votre projet.
[tool.djlint]profile = "golang"profile = "golang"{ "profile": "golang" }