Austin Ziegler wrote: > On Tue, 22 Feb 2005 08:38:20 +0900, Javier Valencia <jvalencia / log01.org> 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