j9t / obsohtml

Detection of obsolete and proprietary HTML elements and attributes
https://www.npmjs.com/package/@j9t/obsohtml
Creative Commons Attribution Share Alike 4.0 International
60 stars 0 forks source link

Add support for .twig files? #7

Closed AndrewMac closed 2 months ago

AndrewMac commented 2 months ago

Hi there, and thanks for this neat little tool. One thing I found, though, was that it didn't work with the files in my templating system, which uses Twig and the .twig extension. I also tested by changing some test files to .html.twig, but that didn't work either. No problem if that's going beyond your intended use case, but if you could add Twig support I would love to use this on several projects. Thanks for listening, though, whatever you decide :-)

j9t commented 2 months ago

Hi @AndrewMac—I think that makes sense (and I suspect there are some more extensions to offer support for, too). Should get to this relatively soon!

j9t commented 2 months ago

Prepared #8…

j9t commented 2 months ago

Added support for .twig (and .njk) in v1.6.0, which is now out on npm! Let me know if there are any issues!

AndrewMac commented 2 months ago

Wow! Thanks so much for the quick work. I will be updating as soon as I possibly can and running this over a bunch of projects :-)