django-template-minimizer is a Django app that allows you minimize your Django templates.
Installation:
django-template-minimizer can be installed either from source or via PyPI.
To install using pip (recommended):
pip install django-template-minimizer
To install using easy_install:
easy_install django-template-minimizer
Register the app in your Django project's settings file:
import tmin
...
INSTALLED_APPS += ('tmin',)
Product's homepage
Requirements:
· Python
· Django
Limitations:
· The default javascript and css minimizers do not handle script tags inside script tags or style tags inside style tags; an unusual occurance.
· eg: < script >bla bla< script >bla< /script >bla< /script >
· The minimizer collapses all white space not in a django tag, django variable, javascript, or inline css. This includes whitespace inside , , and similar tags; and whitespace inside html attributes.