Dirt simple .rcss templates

There was some discussion on this list recently about doing .rcss
templates in Rails using a custom template handler. I’ve come up
with a very simple way to support rcss without a handler. Turns out
all it takes is a route and an action that calls render(:file…). I
put a full write-up on my blog earlier today:

http://blog.hasmanythrough.com/articles/2006/03/23/dirt-simple-rcss-
templates

Of course if anyone sees a simpler way to accomplish this, I’m all
ears…

–josh
http://blog.hasmanythrough.com

On Thu, Mar 23, 2006 at 02:56:35PM -0800, Josh S. wrote:

ears…
Are you familiar with this?
http://lunchroom.lunchboxsoftware.com/articles/2005/08/19/rcss-anyone
http://lunchroom.lunchboxsoftware.com/articles/2005/08/22/css-builder-to-join-builder
http://lunchroom.lunchboxsoftware.com/articles/2005/08/26/css-builder-available-via-css
http://lunchroom.lunchboxsoftware.com/articles/2005/09/01/cssbuilder-three-more-constructs
http://lunchroom.lunchboxsoftware.com/articles/2005/09/02/selector-grouping-builder

marcel

Marcel Molina Jr. wrote:

Are you familiar with this?
http://lunchroom.lunchboxsoftware.com/articles/2005/08/19/rcss-anyone
http://lunchroom.lunchboxsoftware.com/articles/2005/08/22/css-builder-to-join-builder
http://lunchroom.lunchboxsoftware.com/articles/2005/08/26/css-builder-available-via-css
http://lunchroom.lunchboxsoftware.com/articles/2005/09/01/cssbuilder-three-more-constructs
http://lunchroom.lunchboxsoftware.com/articles/2005/09/02/selector-grouping-builder

Yes, I discovered that in my investigations. But I wanted something that
a designer could use so I didn’t want to go with the Builder-style
syntax. ERb is simple enough for someone who is coming from HTML/CSS/PHP
land, but I don’t want to drop yet another new syntax on a designer.
Regular CSS with ERb is pretty much ideal for my needs.

Now, how many different things called RCSS are there already? And how
many will there be eventually? :slight_smile:

–josh
http://blog.hasmanythrough.com