Using the method described below, do I have to set the params in the appropriate teamplates, or can I do the include first and set all the params in one template? The reason I ask is that the params all come from one database table, and I don't want to worry about which template has which TMPL_VARs.
Thanks. -Todd On Wed, Jan 07, 2004 at 01:26:19PM -0600, Timm Murray wrote: > At 01:24 PM 1/7/04 -0500, Todd Chapman wrote: > >I would like to pass a parameter to a template that > >would be used to include another template. This > >syntax does not seem to be valid: > > > > <TMPL_INCLUDE NAME="<TMPL_VAR NAME=include_param>"> > > > >How can I accomplish this? > <> > > I use the output from one template to feed into another: > > ---- > my $tmpl1 = HTML::Template->new( . . . ); > my $tmpl2 = HTML::Template->new( . . . ); > # Bunch of params() calls here > $tmpl2->param( included => $tmpl1->output() ); > print $tmpl1->output(); > ---- > > With a <TMPL_VAR included> in $tmpl2's file. ------------------------------------------------------- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html _______________________________________________ Html-template-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/html-template-users