Hello,

I'm trying populate a loop var using a subroutine reference, something
like this:

$t->param(
        my_loop_var => sub {
                # return an a reference to an array of hash refs
        }
);

I want to use this sort of structure so that that the code will only be
run if "my_loop_var" appears in a template. Here's what happens when I
try this:'

HTML::Template::param() : attempt to set parameter 'lbi_categories_list'
with a scalar - parameter is not a TMPL_VAR!

It looks like HTML::Template is noticing that the code reference itself
is a scalar and is giving up there, instead of noticing that it returns
an appropriate structure. 

Is this a bug, or am I missing something? 

I'm using HTML::Template 2.4.

Thanks!

  -mark

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to