On Mon, 9 Feb 2004, Chris Faust wrote:

> That "associate" seemed like the way to go, when I tried that I get the H:T
> error
> "attempt to set parameter 'items_loop' with a scalar - parameter is not a
> TMPL_VAR!"

Interesting.  I've never tried to associate one template with another
one, but I would expect it to work.  Can you put together a small test
script that generates this error?

> When I tried the "$content2->param($content->param);" method

That won't work because param() without any args returns a list of
parameter names, no values.  Try something like this:

  $content2->param(map { ($_, $content->param($_)) } $content->param());

That takes a list of param names and uses map{} to build a list of
(name,value) pairs to pass to param().

-sam


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Html-template-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/html-template-users

Reply via email to