RE: [htmltmpl] is it possible to use var in include

2005-09-29 Thread Peter Leonard
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

RE: [htmltmpl] is it possible to use var in include

2005-09-29 Thread michael . braig
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

RE: [htmltmpl] is it possible to use var in include

2005-09-29 Thread Rajesh_K
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

Re: [htmltmpl] is it possible to use var in include

2005-09-28 Thread Peter Leonard
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

[htmltmpl] is it possible to use var in include

2005-09-28 Thread michael . braig
Hello all, Is that not possible? > Cause depending in which mode I open the template I want to show up a differnt body (e.g. start page, register page, search page...) Regards Michael