Re: Nested templates

Michael Peters <[email protected]> Wed, 25 Nov 2009 09:32:52 -0500
Newsgroups gmane.comp.lang.perl.modules.html-template
Message-ID <[email protected]>
On 11/24/2009 09:24 PM, Brad Baxter wrote:

> Is there a better way?

I've done this by using a different name for each pass. So something like:

   <pass2_var name="<tmpl_var name=foo>">

So you run it through HTML::Template once to get the output and then
    s/<pass2_/<tmpl_/gi;
And then run it again.

-- 
Michael Peters
Plus Three, LP

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july