Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: HTML::Template Table

by Takamoto (Monk)
on Jun 30, 2020 at 21:58 UTC ( [id://11118739]=note: print w/replies, xml ) Need Help??


in reply to HTML::Template nested Table

Okay, got it. I have been able to use a nested loop, modifying my data structure to:

$VAR1 = [ { 'inner_loop' => [ { 'data' => 'one' }, { 'data' => 'two' }, { 'data' => 'three' } ] }, { 'inner_loop' => [ { 'data' => 'four' }, { 'data' => 'five' }, { 'data' => 'six' } ] }, { 'inner_loop' => [ { 'data' => 'seven' }, { 'data' => 'eight' }, { 'data' => 'nine' } ] } ];

And the following template

<tbody> <TMPL_LOOP NAME=DICTIONARY> <tr> <TMPL_LOOP NAME=inner_loop> <td><TMPL_VAR NAME=data></td> </TMPL_LOOP> </tr> </TMPL_LOOP> </tbody>

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (8)
As of 2024-03-28 12:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found