[htmltmpl] loop_context_vars and nested loops

2009-10-20 Thread cfaust-dougot
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!! -

Re: [htmltmpl] loop_context_vars

2006-08-30 Thread Jamie Krasnoo
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

[htmltmpl] loop_context_vars

2006-08-30 Thread Di Domenico, Michael
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