Re: [htmltmpl] Wrapper functionality
Brought to you by:
samtregar
From: Mathew R. <mat...@ne...> - 2005-10-21 03:54:18
|
There are a number of reasons why this is a bad thing, among them: - performance -> you cant make user of cached templates - error messages can be extremenly cryptic. That said, I maintain a modified version of H::T which does include this feature - you can download it from here: http://members.optusnet.com.au/~mathew Mathew John Wang wrote: > I've been using HTML::Template for a while now and am familiar > TMPL_INCL. If 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 |