Re: Multiple templates within a template

"Mark A. Fuller" <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.html-template
Message-ID <23135561.1133545599302.JavaMail.root@elwamui-rustique.atl.sa.earthlink.net>
From: cfaust-dougot <[email protected]>
>I'm getting into the habit of making a single TMPL file (or new single HT object) in which I will have anywhere from 3 to 5 different pages in it, each within its own template if.
>
>From a performance standpoint, how bad is this? 

It sounds to me like you're trading HT's disk (and/or memory caching) for your own memory caching (if you're using mod_perl and keep the HT object instantiated, and let the "if" be processed with each output so it outputs the correct page for the request).

What benefit do you get from having different pages in one template and using an "if" to output the correct one? Why not keep them in seperate templates and load them as needed (using HT's caching)?

Mark


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.