Re:Ask HN: Why do we minify JavaScript, yet not HTML?
by mcs on Sunday December 02, 2012 @05:57PM
(#4862936)
I've overloaded some functions in javascript templating functions before to regex out whitespace between tags.
Had some issues with cdata stuff, but it could be tweaked to perfection i'm sure.
https://github.com/sechrist/ejs-shrink