https://github.com/mitsuhiko/jinja2-htmlcompress
— jinja2-htmlcompress
a Jinja2 extension that removes whitespace between HTML tags.
Is html compression really worth it? It makes the source look ugly. Does it help with performance though, if so, by how much, and is it noticeable by the user?
I doubt the amount of redundant white space is really going to be worth it for most HTML. If I were that worried, I’d just make sure to set my front-end webserver to gzip the page if possible.