[htmltmpl] Wrapper functionality
Brought to you by:
samtregar
From: John W. <joh...@gm...> - 2005-10-21 03:01:01
|
I've been using HTML::Template for a while now and am familiar TMPL_INCL. I= f you wanted the main template to be nested inside an "outer" template, say one that contained the header, footer, and navigation, you could do that in Perl: instantiate HTML::Template twice and put the output of one as a param in another. Just recently I did a little playing around with TT and found it's WRAPPER directive very useful. It basically does the same thing but because it's built into the templating system, it's a lot cleaner. This seems a useful and basic enough feature that I was wondering if there was a reason it wasn't included with HTML::Template? Performance, something else? Just curious, John |