David Ziegler's personal blog of computing, math, and other heroic achievements.


03 Apr 2009

CleverCSS Patch

So after raving about how great CleverCSS is, I discovered a small bug that will cause it to fail with django-css. Basically, if you run CleverCSS from the command line like so:

$ clevercss static/base.ccss

it will output a file called ccss.css in the directory you ran clevercss.py from, instead of creating a file called static/base.css. Fortunately, this was literally a one character fix.

I submitted the patch but it doesn’t look like the official version will be patched anytime soon, since the package hasn’t been changed since 2007. Until then you can download the recent patched version here: http://code.google.com/p/django-css/downloads/list

Update: My forked version of CleverCSS is now here: http://github.com/dziegler/clevercss/tree/master with various bug fixes. It will also install a clevercss executible in your path.

Comments (View)

blog comments powered by Disqus
Page 1 of 1