Bragi,
I''m having some troubles with your package. Is it intended that the
controller instance variables not be passed to the rcss view? I can''t
seem to access the @session variable within my .rcss file, or any other
instance variable that I define in the rcss controller. This is
problematic, since I''d like to use this to implement per-user
preferences (such as font size, family, etc). I could do this other
ways, like have a default CSS file and override changes using the
application layout, but it''d be nice to avoid cluttering up the HTML
source with style tags. The way my application is set up, the @session
variable includes user information. Is there a configuration problem on
my end, or were these variables just not intended to be passed to the view?
Thanks in advance,
Jeremy
Bragi Ragnarson wrote:
>Hi All!
>
>My first contribution to Ruby/Rails community is ready. Here is short
>snippet from README as an overview:
>
>Rcss implements CSS-SSC (Server-side Constants) in Ruby.
>
>Main features:
>
>* Create rich CSS files using:
> - ERB templates
> - Server-side constants
> - Server-side classes (preliminary)
>
>* Simply add Rcss files to any Rails application
>
>* Process Rcss files off-line using command line executable
>
>Implementation is simple and might not be the most efficient but comes
>with tests and documentation.
>
>Interesting feature you might want to look at are server-side classes.
>They allow multiple CSS attributes to be introduced to selector using
>a single line.
>
>Rcss comes as a Ruby Gem and should be available shortly using normal
>''gem install rcss'' command.
>
>Feel free to visit project site at http://rubyforge.org/projects/rcss
>and read documentation on http://rcss.rubyforge.org.
>
>Comments (especially on server-side classes idea) are welcome.
>
>
--
Jeremy Stephens Computer Systems Analyst I School of Medicine
Department of Biostatistics Vanderbilt University