Good solution for managing stylesheets

Jeffrey Moss
Fri, 19 Aug 2005 21:31:02 -0000

Does anybody figure they have the perfect solution for managing stylesheets
when using layouts and partials?

I''d like a way for each partial to automatically include something in
the
header section of the layout, when it is used. Right now I just have the
layout setup to include 3 stylesheets, one called "default", another
called
the controller name, and another called the action name, but this of course
has limitations.

I thought there was something in the works to handle this (having things
appear in the header that were called in a template or partial), was that
idea scrapped? I imagine it presents a few problems, I mean it''s sortof
dirty to automatically include stylesheets based on what the page is
composed of, I may need to just switch to a controller-based add_stylesheet
macro or something...

-Jeff