I thought there was a Python tool that did that. I can't remember the name offhand.
On Jun 26, 4:16 pm, Jason Brower <encomp...@gmail.com> wrote: > As nice and easy as it is (I love how easy the language is). Couldn't > we just do this with python? That way we could just add our css file as > a dynamic file like the others. I am personally planning to use the > python code in my css generation as I need to do a bit of math and want > variables and functions. Makes for very clean css if you build the css > for each page. (But much harder work for us programmers.) > BR, > Jason > > On 06/25/2011 02:50 PM, Joe Barnhart wrote: > > > > > > > > >http://lescss.org/ > > > The crux of this js library is to preprocess your CSS files so you can > > use a few carefully-chosen extensions to make your CSS files smaller > > and more powerful (kind of like web2py). > > > For example, VARIABLES. How many times have you wished you could just > > assign a name to a color and then use it over and over and over inside > > your CSS file? Another example, NESTING. You can actually use a > > class, id, or element definition within another and its definition > > nests. And you can even pass parameters to tailor the nested CSS. > > > For something as simple in concept, it's a little overwhelming at how > > it can transform a complicated CSS file. I'm still wrapping my head > > around it. > > > -- Joe B.