djLint reads HTML and the template syntax inside it, with profiles for Django, Jinja, Twig, Nunjucks, Handlebars, Mustache, Liquid, Go templates, Angular, Tera, Askama and Mako.
uv tool install djlint, pip install djlint or npm i -g djlint
djlint . --lint finds problems, djlint . --reformat fixes the formatting
djlint --lsp runs the language server for Neovim, Helix, Sublime Text, JetBrains IDEs and Emacs