Skip to content

stanfeldman/compressinja

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MVC web framework in Python with Gevent, Jinja2, Werkzeug

Jinja2 extension that removes whitespace between HTML tags.

Usage

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

# or some spaces
env = Environment(extensions=['jinja2htmlcompress.SelectiveHTMLCompress'])
#in template
{% strip %} ... {% endstrip %}

License

This software is licensed under the BSD License. See the license file in the top distribution directory for the full license text.

About

Compression extensions for Jinja2

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages