Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: TMPL_LOOP inside another TMPL_LOOP with HTML::Template

by jbrugger (Parson)
on Nov 17, 2005 at 09:38 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://509343]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2024-04-19 23:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found