What I had in mind was to do what the fairly common PHP server-side CSS  
switcher does, only with Ruby. There are advantages to a server-side  
solution, and if someone coded it in Ruby I'd probably understand it  
someday. I hope never to have to understand (i.e., study) PHP. I have a  
life outside of computers, and that leaves very little free time.  
So...hoping for an all-Ruby little world I can live in.

I agree that it seems trivial...but not for me. Someone else, maybe?

Here's the PHP switcher article on A List Apart, for example...

http://www.alistapart.com/articles/phpswitch/

- t.

On Tue, 04 Oct 2005 21:39:19 -0700, James Britt <james_b / neurogami.com>  
wrote:

> Tom Cloyd wrote:
>> I have no idea if this is a goofy idea or not (and I'm only just  
>> starting  with Ruby and unable to attempt this project myself), but  
>> might a CSS  switcher for web pages be possible in Ruby? Seems quite  
>> possible to me,  but...
>
> What might this do?  CSS switchers I'm familiar with use JavaScript to  
> rewrite the DOM and change the selected CSS in the browser:
>
> http://www.alistapart.com/articles/alternate/
>
> Having some server code emit different CSS, or change the CSS link  
> specified in some Ruby-generated HTML page, seem trivial.
>
> One might, I suppose, combine these things and use remote scripting to  
> fetch a custom CSS file or modify inline CSS in the browser.
>
>
>
> James
>



-- 

======================================================
Tom Cloyd, MS MA, LMHC
Private practice Psychotherapist
Bellingham, Washington, U.S.A: (360) 920-1226
<< BestMindHealth.com / tc / bestmindhealth.com >>
======================================================

Using Opera's revolutionary e-mail client (program):  
http://www.opera.com/mail/