From: Ezra Zygmuntowicz Date: 2005-12-18T06:49:13+09:00 Subject: Re: questions about ruby cgi there an easier way around this than trying to hack the cgi library? > > eparklabs will be releasing this in the next few days: > > [ahoward@localhost xx-0.0.0]$ cat a.rb > require "xx" > > class Table < ::Array > include XX::XHTML > > def to_xhtml > xhtml_{ > html_{ > head_{ title_{ "table demo" } } > > h1_(:style => :sweet){ "this is a table " } > > h_{ " > table_(:width => 42, :height => 42){ > each{|row| > tr_{ row.each{|cell| td_ cell } } > } > } > } > } > end > end > > table = Table[ %w( 0 1 2 ), %w( a b c ) ] > > puts table.to_xhtml > > > [ahoward@localhost xx-0.0.0]$ ruby -I./lib a.rb > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> > > > table demo > >

this is a table

open tags if you must > > > > > > > > > > > >
012
abc
> > > > > perhaps i could send you a version offline to test? > > -a Ara- I like the looks of that a lot. Can you send me a copy of list? I will test and give feedback. Cheers- -Ezra