mitsuhiko / jinja2-htmlcompress

Compresses HTML in Jinja2 streams
Other
128 stars 27 forks source link

Merge updates from previous PRs; as well as py3 compat fixes #16

Open eli-collins opened 7 years ago

eli-collins commented 7 years ago

This PR contains a big bundle of changes:

~I'm going to be using this a bit in production, so if/until this is merged, will try to keep my branch up to date.~ Update: After exploring how to enhance this extension further, I ran into a number of architectural obstacles, and decided that using jinja's lstrip_blocks & trim_blocks flags will probably be overall easier for me to deploy, despite those flags' "all or nothing" behavior.