Re: [htmltmpl] Multiple templates within a template
Brought to you by:
samtregar
From: Mark A. F. <mar...@ea...> - 2005-12-02 17:46:57
|
From: cfaust-dougot <cf...@do...> >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 |