djangosnippets.org: Latest snippets posted by fabrice.bonnyhttp://djangosnippets.org/users/fabrice.bonny/2009-11-06T03:09:07.307181-06:00fabrice.bonnyGoogle Closure support in django-compress
2009-11-06T03:09:07.307181-06:00fabrice.bonnyhttp://djangosnippets.org/snippets/1785/<p>A filter to integrate Google Closure compiler in django-compress plugin.
</p>
<ol>
<li>
<a href="http://code.google.com/p/django-compress/">download django-compress</a>
</li>
<li>
install it
</li>
<li>
<a href="http://code.google.com/closure/compiler">download Closure Compiler</a>
</li>
<li>
put the jar at the root of your project
</li>
<li>
put this snippet as a <strong><strong>init</strong>.py</strong> file in a <strong>google_closure</strong> directory in the filters directory of the plugin
</li>
<li>
add <code>COMPRESS_JS_FILTERS = ('compress.filters.google_closure.GoogleClosureCompilerFilter',)</code> to …</li></ol>
Freely redistributable