From: Wakou Aoyama Date: 1999-07-25T05:57:35+09:00 Subject: [ruby-talk:00521] Re: CGI.rb Hello. On Sat, Jul 24, 1999 at 08:09:14PM +0200, Michael Neumann wrote: > I am using CGI.rb. It's very nice. Oh, thank you. > But, is it possible to create tables with it? CGI.rb has no special way to make table for now. cgi.table{ cgi.tr{ cgi.td{"item"} + cgi.td{"item"} + cgi.td{"item"} } + cgi.tr{ cgi.td{"item"} + cgi.td{"item"} + cgi.td{"item"} } + cgi.tr{ cgi.td{"item"} + cgi.td{"item"} + cgi.td{"item"} } } require 'CGI' cgi = CGI.new("html4Tr") table = [ ['00', '01', '02', '03'], ['10', '11', '12', '13'], ['20', '21', '22', '22'], ['30', '31', '32', '33'] ] print cgi.table{ table.collect{|row| cgi.tr{ row.collect{|item| cgi.td{ item } } } } } -- Wakou Aoyama