[roch-pm] Techniques for templates

Tony Witte tjwitte at servtech.com
Wed Oct 25 15:29:32 CDT 2000


I use your second described technique, embedding HTML right into 
the perl script.  I believe the 3rd way would be the most elegant 
and code efficient, but I haven't delved into CGI:pm enough.

Tony Witte

On 25 Oct 00, at 16:17, Brian Mathis wrote:

> I assume there are a lot of CGI programmers out here, and I was wondering
> how people handle printing out customized pages back to the browser.  I
> can think of a few different techniques on how this could be done:
>  1. Store the html in a file, and search & replace on tokens in that file
>  2. actully embed the html code in the perl script itself, then print it
> all out with $vars automatically updated
>  3. use CGI.pm to handle printing the html tags for you
> 
> I personally use #1, but I was wondering what other people use.
> 
> -- 
> Brian Mathis
> Direct Edge
> http://www.directedge.com

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



More information about the Rochester-pm mailing list