Re: Wrapper functionality

Mathew Robertson <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.html-template
Organization Nielsen//NetRatings
Message-ID <[email protected]>
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



-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.