Description:
Use this code to create easily modifiable html templates for use in your
perl cgis. Hate having to place all the print statements in your program
and having to escape all those quotes? Would you like to give the ability
for people who don't know how to program in perl to customize the output
of your cgis? Templates are the answer. Here's how it works. Take any html
file and anywhere you place in(variable), it gets replaced with $in{'variable'}.
For example, if you have $in{'name'} = 'bob' and an html file that has: Name: in(name)
The output would look like: Name: bob
Directions:
Follow Steps 1 and 2 below. Use the
'Grab Text' buttons to select the code within the adjacent textarea. Then
use Control-C or Edit -> Copy to buffer the text for pasting into your document.