From: Ron Savage <rons@de...> - 2003-07-03 01:21:39
On Wed, 2 Jul 2003 20:51:48 -0400, Bob Hicks wrote:
>Can it take a variable? Meaning can I define a param in my .pm=
>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=
<tmpl_var name =3D content>
in my basic template, and using another template to generate the=
content, and then stuffing that into the base with
$base -> param(content =3D> $other -> output() );
The big advantage of this is the freedom to do:
$base->param(content=3D>$other_1->output() . $other_2->output() );
Eg: In the first case it is a search form, and in the second it=
search results + the search form again, so they can refine the=
Then the search results template can do something similar so they=
click on a specific result to expand it...
Ron Savage, rons@... on 3/07/2003. Room EF 312
Deakin University, 221 Burwood Highway, Burwood, VIC 3125,=
Phone: +61-3-9251 7067, Fax: +61-3-9251 7604
Get latest updates about Open Source Projects, Conferences and News.