[roch-pm] Techniques for templates

Tony Whyte anthony.whyte at kodak.com
Wed Oct 25 16:20:45 CDT 2000


A combo of #2 and #3 letting CGI.pm facilitate building some of the html
and using good old "here docs" for the 
bits I want to expand vars in. In this snippet for example at the end of
the cgi script start_html() is a cgi
provided function but $FORM_DATA was built previously in the script
expanding vars like this

$FORM_DATA=<<"FORM_TEXT";

lot of html stuff here 
..
My name is $name

FORM_TEXT

.
.
.
.

 
#===========================================================================
# Output HTML information
#===========================================================================
print start_html(-title         =>'Bagel Request Management System
V1.0',
                 -language      =>'JavaScript1.2',
                 -onLoad        =>'fill_form()',
                 -script        =>$JSCRIPT);

print $FORM_DATA;


I havent become familiar with CGI support of server side include stuff
yet, if there is any even. 

Tony
--
For information on unsubscribing from this list, please visit
http://rochester.pm.org



More information about the Rochester-pm mailing list