Re:Redesign: Users: Thrilled. Conversion Rates: Up. Sales: U...
by irahul on Thursday April 19, 2012 @02:49PM
(#3864494)
> Not sure if this is the case or not, but certain templating systems make it really hard to remove extra whitespace/lines (I'm looking at you Jinja2)
Jinja2 is a generic templating engine, and as such can't make assumptions about relevance of whitespace.
However, writing an extension on top of it isn't hard, and mitsuhiko has written an extension to do that.
Removing them after the fact with a HTML tidier would work, or you could just not care and let gzip handle the compression.