Click here for code example 7.
Unlike the varied responsibilities of
the above subroutine has one straightforward goal: insert
the HTML from
&resultTable into the HTML
template page. We open up the template file, specified
$templatePage, join the file into one long line,
and search-and-replace the known comment tag with the
entire HTML chunk that GUFE has generated. This subroutine
returns its result -- the entire HTML page -- to the
calling statement, which was
print(), causing it to
be sent to the browser. Sweet peas.
We've spent a lot of time this month looking at segments
of code and narrating segments of code. But the real
core of this article is the code itself. If you want to
implement, modify, or better yet, understand GUFE's
application to your own web-based database you should
spend time reading, tinkering, reading, and tinkering
some more with the
full unmodified GUFE script.