Hi,
I was wondering if it's at all possible to get utilize the loop_context_vars of
a parent loop within a nested loop?
For example, something like this?
This would be true for the duration of
NestedLoop for the 1st loop of LoopOne
TIA!!
-
Here's a short example.
my $template = HTML::Template->new( 'filename' => 'some.tmpl',
'loop_context_vars' => 1);
my $some_funky_loop = [..#array ref of hashrefs of stuff#.. ];
$template->param('SOME_LOOP' => $some_funky_loop);
$template->output();
# template
On 8/30/06, Di Dom
I’m trying to use the loop_context_var option for
HTML::Template. Specifically I’m looking at the __counter__ option.
When I do a dump on my hashref, I can see that it’s adding __counter__
along with the other vars, however, the counter var is always ‘undef’.
Is it supposed to be li