Wrapper functionality
John Wang <[email protected]>
| Newsgroups | gmane.comp.lang.perl.modules.html-template |
|---|---|
| Message-ID | <[email protected]> |
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