compressinja

  122 downloads
0.0.2 BSD License    
  UNRATED
Jinja2 extension that removes whitespace between HTML tags

description

download

specifications

compressinja is an MVC web framework in Python with Gevent, Jinja2, Werkzeug.

Usage

# all spaces will be removed
env = Environment(extensions=['jinja2htmlcompress.HTMLCompress'])

# or some spaces
env = Environment(extensions=['jinja2htmlcompress.SelectiveHTMLCompress'])
#in template
{% strip %} ... {% endstrip %}
read more   
Last updated on December 21st, 2011

0 User reviews so far.

SUBMIT