pyramid-htmlmin

Minify your html pages for Pyramid


Keywords
web, pyramid, pylons
License
GPL-3.0
Install
pip install pyramid-htmlmin==0.6

Documentation

pyramid-htmlmin

Binding of the htmlmin library for Pyramid.

Usage:

pyramid.includes =
  pyramid_htmlmin

# uncomment lines to override default settings.

# Send gzipped minifed code when possible (defaults to True)
# pyramid_htmlmin.gzip_if_accepted = True

# the settings here are default value of htmlmin.minify methods,
# provided by htmlmin version 0.1.5
# htmlmin.remove_comments = False
# htmlmin.remove_empty_space = False
# htmlmin.remove_all_empty_space = False
# htmlmin.reduce_empty_attributes = True
# htmlmin.reduce_boolean_attributes = False
# htmlmin.remove_optional_attribute_quotes = True
# htmlmin.keep_pre = False