Template linting

12 views
Skip to first unread message

Tobias Bengfort

unread,
Sep 28, 2019, 10:00:12 AM9/28/19
to Django users
Hi,

I was wondering whether there are any good options for linting HTML
templates. I have searched for a while, but all I found falls into one
of these categories:

- half baked attempts that were abandoned at some point
- HTML linters that get confused by template syntax
- template linters for specific template languages, but not django

My main motivation is finding missing closing tags in HTML, but anything
on top of that would be welcome.

I cannot be the first person with this question. How do you check your
templates?

tobias

Jani Tiainen

unread,
Sep 28, 2019, 12:53:21 PM9/28/19
to django...@googlegroups.com
Hi.

It could be intetesting thing to play with for example pyparsing-library.

But to my knoledge there is (not yet) such a linting tool.


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/590a6d82-1112-9c1f-dfcf-3e41473d0b42%40posteo.de.
Reply all
Reply to author
Forward
0 new messages