hello

I have a basic question on the CGI module.

I have this code:

require "cgi"
cgi = CGI.new("html4")
cgi.out { cgi.head { cgi.title{"testtitle"} } }
cgi.out { cgi.body { cgi.h1 { "linux rules" } } }
cgi.out { cgi.h1 { "ruby rules" } }

but the 2nd and 3rd cgi.out call are never executed
I get an empty page with only this source code


<head><title>testtitle</title></head>


but when I have a bigger cgi programm I have html output at different
places and then I need cgi.out several times.
is there a may to call it multiple times or is this just some kind
of misunterstanding of the whole cgi module.

thanks in advance for any answer

markus