From: Alex Young Date: 2007-03-22T17:27:33+09:00 Subject: Re: eRuby and CSS John Joyce wrote: > Does eRuby parse CSS ? I don't think that's quite the question you want to ask. eRuby parses eruby templates to produce text files. Those text files can be pretty much anything (CSS included). > I'd like to be able to create style sheets that use variables for > repeated values like colors and borders. > I'm curious if eRuby currently has this functionality or not. > Is there some method to use the css link in an xhtml document to parse > the style sheet before sending it to the user-agent? > I know it can be done with css embedded into pages, Blogger does this > with its PHP templating, but that is something I'd rather not do. > Or is this just more trouble than it's worth? > Take a look at http://rcss.rubyforge.org/ - I think it does what you're looking for. It's for Rails, but it should be good education even if you can't use it directly. -- Alex