From: BreadWithSpam@... Date: 2006-08-17T06:55:05+09:00 Subject: Re: cgi.rb HTML construction tools - from within Webrick servlet? "Jan Svitok" writes: > > On 8/7/06, BreadWithSpam@fractious.net wrote: > > Folks, I'm just playing with webrick and writing a servlet > > for the first time here. > > > > I've previously used Perl's CGI.pm to write a lot of stuff, > > and used extensively its tools for generating HTML, especially > well, there are many web frameworks from large to small ones (rails, > nitro, camping) > then there is markaby, builder et al. to generate markup > and even erb for templates. > > > Can I just use cgi.rb (can I feed it the req.query)? > > It seems you can mixin CGI::HtmlExtension to your servlet - that way > you'll have all the methods there. I haven't had a chance to try out your suggestion yet, but I wanted to thank you for making it. I'll give it a shot. In the meantime, I just wrote a handy-dandy HtmlTools object which generates some of the common stuff for me - pop-ups, checkboxes, markup for headers, etc. It's very primitive, and I should replace it. Thanks -- Plain Bread alone for e-mail, thanks. The rest gets trashed. No HTML in E-Mail! -- http://www.expita.com/nomime.html Are you posting responses that are easy for others to follow? http://www.greenend.org.uk/rjk/2000/06/14/quoting