te-users@lists.sourceforge.net
Subject: Re: [htmltmpl] is it possible to use var in include
Michael,
In my experience, the only way to make that work is by making two passes
through HTML::Template, creating a custom filter on the first pass.
So your template syntax would look like this:
[TMPL_I
t; {
> my $text_ref = shift;
> $$text_ref =~ s/%mainbody%/$body_include/g;
> };
>
> Regards,
> Rajesh
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf
Of
> Peter Leonard
> Sent: Wednesday, September 28, 2005 7:48
users@lists.sourceforge.net
Subject: Re: [htmltmpl] is it possible to use var in include
Michael,
In my experience, the only way to make that work is by making two passes
through HTML::Template, creating a custom filter on the first pass.
So your template syntax would look like this:
[TMPL_I
Michael,
In my experience, the only way to make that work is by making two passes
through HTML::Template, creating a custom filter on the first pass.
So your template syntax would look like this:
[TMPL_INCLUDE NAME=]
The first pass would set the 'mod' param, but ignore the outer tags. The