Hello,

You can achieve the same results by using two HTML::Template objects.

start fake code:

my $t = HTML::Template->new( "foo.html" );
my $i = HTML::Template->new( "inner.html" );

$t->param( INNER => $i->output( ) );

: end fake code

Thanks,

Cory Trese
Lead Web Application Developer

O'NEIL & ASSOCIATES, INC.
495 Byers Rd.
Miamisburg, Ohio 45342-3662
Phone: (937) 865-0800 ext. 3038
Fax: (937) 865-5858
E-mail: [EMAIL PROTECTED]



> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf
> Of Kenny Smith
> Sent: Sunday, December 22, 2002 11:25 AM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: RE: [htmltmpl] TMPL_INCLUDE and TMPL_VAR !??
>
>
> Hi Aleksey,
>
> No, that kind of structure doesn't work. HTML::Template for the sake of
> speed and effeciency uses a one-pass parser.
>
> Kenny
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]On Behalf
> > Of Aleksey Kohanov
> > Sent: Saturday, December 21, 2002 3:31 PM
> > To: [EMAIL PROTECTED]
> > Subject: [htmltmpl] TMPL_INCLUDE and TMPL_VAR !??
> >
> >
> > Hello!
> >
> > Would work such scheme :
> >
> > <TMPL_INCLUDE NAME=<TMPL_VAR NAME=choose>>
> >
> > I have such situation: i need to include tmpl-file who's name will get
> > script like this :
> > --
> > my $q = new CGI;
> >
> > my $choose = ($q->param('choose'));
> >
> > print $q->header();
> >
> > $t->param(choose=>$choose);
> >
> > print $t->output();
> > --
> >
> > For example if choose="about.tmpl" i need include file about.tmpl, if
> > choose="form.tmpl" - form.tmpl
> >
> >
> > Please tell me how could I do this right ?
> >
> >
> > tnx.
> >
> > --
> > wbr. Aleksey V. Kohanov
> > CJSC "Internet-Service"
> > e-mail: [EMAIL PROTECTED]
> >
> >
> >
> > -------------------------------------------------------
> > This SF.NET email is sponsored by: Order your Holiday Geek Presents Now!
> > Green Lasers, Hip Geek T-Shirts, Remote Control Tanks, Caffeinated Soap,
> > MP3 Players,  XBox Games,  Flying Saucers,  WebCams,  Smart Putty.
> > T H I N K G E E K . C O M       http://www.thinkgeek.com/sf/
> > _______________________________________________
> > Html-template-users mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/html-template-users
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Html-template-users mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/html-template-users



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Html-template-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/html-template-users

Reply via email to