[htmltmpl] Multiple templates within a template
Brought to you by:
samtregar
From: cfaust-dougot <cf...@do...> - 2005-12-02 17:23:10
|
I couldn't really find the answer I was looking for by search the = archives, so I thought I would simply ask.. =20 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. Quite often there is redundancy within the template if's and I'm = ultimately only displaying one of the template ifs...=20 =20 From a performance standpoint, how bad is this?=20 Is it costly enough that I really shouldn't be doing it?=20 If it is a problem, is it because it increases the overall size of the = tmpl file? Or is it because I might be setting multiple = tmpl_var's,tmpl_loop's etc 2 or 3 times within the template when I only = needed to do it once? =20 Everything is under mod_perl and I cache the templates, if that makes = any difference. =20 I know I could probably use benchmark to do some tests, but I figured = I'd try the list first. =20 TIA -Chris |