Thanks to visit codestin.com
Credit goes to github.com

Skip to content

AlexLSB/django-htmlspaceless

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Django-htmlspaceless

Django-htmlspaceless is a simple Django app to compress your html page source code. It doesn't parse your page's DOM structure, so works faster.

Quick start

  1. Installation:
pip install git+git://github.com/AlexLSB/django-htmlspaceless
  1. Add "htmlspaceless" to your INSTALLED_APPS setting like this:
INSTALLED_APPS = (
    ...
    'htmlspaceless',
)
  1. Include the htmlspaceless midlleware in your project middleware classes like this:
MIDDLEWARE_CLASSES = (
    ...
    'htmlspaceless.middleware.SpacelessMiddleware',
)
  1. Add to your settings:
HTMLSPACELESS_ENABLED = True
  1. You're done! Running your project you should see compressed HTML-code of your pages source code.

About

htmlspaceless is a simple Django app to compress your html page source

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages