If things look a little dusty around here, it's because I'm away on a mission for two years. I'll be back in August 2012, but in the mean time feel free to fork my projects on github.
Announcing: python-css
Jul 17, 2010
by Jared
http://jaredforsyth.com/media/projects/logo___.png

In the course of rewriting CleverCSS, I wanted to write a backwards converter from css to ccss. I thought it would make the tool much easier to adopt.

You know, you've got this big web project, and you realize that what you really need is a little more power behind your stylesheets, and it would be great to have scoping, and variables... but you've already got 2,000 lines of css that you really don't want to port over... just throw it at css2ccss and you're golden!

Anyway, it currently uses cssutils, but I thought that CSS would be another great grammar to try codetalker against. And the result is python-css. 108 lines, faster than cssutils... I'm doing some more detailed benchmarks which I'll put up later.

update: here are the benchmarks

blog comments powered by Disqus