What suggestions do you guys have for using instance variables in CSS?
I suppose I could just include a partial with style tags, but I’m
looking for something a little more elegant.
I found this: http://rcss.rubyforge.org/ Has anyone used it?
What suggestions do you guys have for using instance variables in CSS?
I suppose I could just include a partial with style tags, but I’m
looking for something a little more elegant.
I found this: http://rcss.rubyforge.org/ Has anyone used it?
Ryan Belcher wrote:
What suggestions do you guys have for using instance variables in CSS?
I suppose I could just include a partial with style tags, but I’m
looking for something a little more elegant.I found this: http://rcss.rubyforge.org/ Has anyone used it?
That rcss project has gone in a different direction. It’s all about
server-side variables now, which I feel don’t integrate well with
typical Rails development. I have a simple solution for doing rcss with
ERb templates that works well:
http://blog.hasmanythrough.com/articles/2006/03/23/dirt-simple-rcss-templates
If you’re on edge Rails, note that the new routing means you have to do
your route a bit differently. I’ll have to update that article soon…
–
Josh S.
http://blog.hasmanythrough.com
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs