> Has anyone played with the possibility of generating dynamic CSS? I'm
> writing code that gives users a UI to customize the look of their
> pages, and static CSS doesn't work for me anymore. I need CSS
> variables, whose values I'll pull from the database.
>
> CSS is rather syntax heavy, so I'm not sure what a good Lisp
> alternative would look like. I don't like css-lite - it seems to turn
> bad syntax into horrific one.

What's so horrific about it?


> There's Sass which looks cool, but I'm a
> little reluctant to use it because it'll pull in a lot of non-Lisp
> dependencies.

Where's the problem here?


> I could combine Sass with a lisp templating system to
> achieve what I'm looking for (even using a templating system directly
> would work), but I'm hoping someone stumbled across a more "Lispy"
> solution.

On the lower level we don't need to agree on a format.

We should define a protocol for component (page, widget, anything else?)
CSS that allows us to specify and collect the CSS rules as strings.

Then one can use whatever he wishes to generate their CSS and even mix
approaches.

IMHO this protocol is way more important than deciding on a specific
DSL approach, but I suppose I have missed your actual question by far. ;)


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"weblocks" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/weblocks?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to