[Rails] Re: Using register_template_handler to serve CSS files (Making ActionView handle .css as .rhtml)

Alain Ravet
2006-01-22T12:44:59Z

Iv?n

    >  I wanted to be able to use some Rails code inside CSS files,

Do you know RCSS?
     http://rcss.rubyforge.org/
It lets you use Erb inside css stylesheets.

Note: I''ve experienced some problems when using RCSS on a shared server
(Dreamhost). I wonder if it''s related to RCSS resource need:it has to
translate the RCSS file into a CSS one. What happened is that the page
would sometimes render without any styling, as when you remove all the
stylesheed. Refreshing the page would have display correctly.


Alain