by irahul · 14y ago · 0 comments
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.
https://github.com/mitsuhiko/jinja2-htmlcompress