Jinja2 extension that removes whitespace between HTML tags.
# all spaces will be removed
env = Environment(extensions=['jinja2htmlcompress.HTMLCompress'])
# or some spaces
env = Environment(extensions=['jinja2htmlcompress.SelectiveHTMLCompress'])
#in template
{% strip %} ... {% endstrip %}
This software is licensed under the BSD License. See the license file in the top distribution directory for the full license text.