Ryan Lewis wrote:
> The code will look like this:
>   HTML::body {
>     "blahblah"
>     HTML::h1 {
>       "zomg headers"
>     }
>   }
> 
> Assuming HTML::h1 returns "<h1>zomg headers</h1>", HTML::body will only 
> return "<h1>zomg headers</h1>".
> But I need it to return ["blahblah", "<h1>zomg headers</h1>"]

Maybe you should look into Ruby CGI. Its a part of the standard library: 
http://www.ruby-doc.org/stdlib/libdoc/cgi/rdoc/index.html

Here is a good introduction: 
http://coolnamehere.com/geekery/ruby/web/cgi.html

Andreas
-- 
Posted via http://www.ruby-forum.com/.