compressinja

0.0.2 BSD License    
  UNRATED

  122 downloads

Jinja2 extension that removes whitespace between HTML tags

description

download

specs

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

#Jinja2 extension #remove whitespace #HTML tags #Jinja2 #HTML #tags #whitespace

0 User reviews so far.

SUBMIT