From: dejaspam@... (Bill Atkins) Date: 2004-04-15T03:04:16+09:00 Subject: New HTML Toolkit I was thinking today about how much I hate writing programs to generate HTML, so I sat down and wrote some code. There's currently nothing to make this work - it's just an idea # tests a simple HTML generation toolkit - this is how a working script ought to work data = [[1, 2, 3], [4, 5, 6] puts RHTk.new do title "A Test of RHTk - The Ruby HTML ToolKit" include_css "style/rhtk.css" body do header1 "Here's a sample header", :class => 'modern' table do name "main table" data.each do |i| row do data[i].each do |d| column d end end end end out "that's all for now" end end The RHTk constructor would return a string, all neatly tabified.
| 1 | 2 | 3 |
| 4 | 5 | 6 |