From: Javier Valencia Date: 2005-02-22T20:54:52+09:00 Subject: Re: CSS integration with CGI objects James Britt wrote: > Austin Ziegler wrote: > >> On Tue, 22 Feb 2005 08:38:20 +0900, Javier Valencia >> wrote: >> >>> I think that the CGI class is still in development, isn't it? >>> How can i add a "class" attribute to my elements? I want to use CSS in >>> my scripts. >>> For example for a CGI.text_field. >> > > I believe you can pass a hash of attribute name/values to the method > >> >> >> Recommendation: don't use the CGI HTML generation. Use a templating >> environment, such as Amrita or even the RDoc templating included with >> Ruby. > > > Or consider using the XmlBuilder lib, which as an API somewhat similar > to the CGI HTML stuff. > > http://onestepback.org/index.cgi/Tech/Ruby/BuilderObjects.rdoc > > James > >> >> -austin > mmm but using other methods means that cgi forms will not use automatically cookies and such things