Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: TMPL_LOOP inside another TMPL_LOOP with HTML::Template

by jbrugger (Parson)
on Nov 17, 2005 at 09:38 UTC ( #509343=note: print w/replies, xml ) Need Help??


in reply to TMPL_LOOP inside another TMPL_LOOP with HTML::Template

#test.pl: use HTML::Template; my $tmpl = HTML::Template->new(filename => 'test.tmpl'); $tmpl->param( Loop1 => [ { Loop2 => [ {name => "me"}, {name=>"another"} ] }, { Loop2 => [ {name => "you" } ] }, ]); print $tmpl->output(); # and test.tmpl. <!-- TMPL_LOOP NAME=Loop1 --> <!-- TMPL_LOOP NAME=Loop2 --> <!--TMPL_VAR NAME = name --> <!--/TMPL_LOOP --> <!--/TMPL_LOOP -->
"We all agree on the necessity of compromise. We just can't agree on when it's necessary to compromise." - Larry Wall.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://509343]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2020-02-25 22:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What numbers are you going to focus on primarily in 2020?










    Results (113 votes). Check out past polls.

    Notices?