On Wed, 2 Jul 2003 20:51:48 -0400, Bob Hicks wrote:

Hi Bob

>Can it take a variable? Meaning can I define a param in my .pm file
>and
>just use that to pass to the <TMPL_INCLUDE> in each template?

I think I know what you are getting at. I avoided INCLUDE totally by
putting
<tmpl_var name = content>
in my basic template, and using another template to generate the
content, and then stuffing that into the base with
$base -> param(content => $other -> output() );
The big advantage of this is the freedom to do:
$base->param(content=>$other_1->output() . $other_2->output() );
Eg: In the first case it is a search form, and in the second it is
search results + the search form again, so they can refine the search
keys.
Then the search results template can do something similar so they can
click on a specific result to expand it...
--
Ron Savage, [EMAIL PROTECTED] on 3/07/2003. Room EF 312
Deakin University, 221 Burwood Highway, Burwood, VIC 3125, Australia
Phone: +61-3-9251 7067, Fax: +61-3-9251 7604
http://www.deakin.edu.au/~rons




-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
Html-template-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/html-template-users

Reply via email to