Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

HTML::Template nested loops

by mhearse (Chaplain)
on Jul 12, 2012 at 21:33 UTC ( #981505=perlquestion: print w/replies, xml ) Need Help??
mhearse has asked for the wisdom of the Perl Monks concerning the following question:

I'm trying to determine the data structure that would populate this template. Can someone help?
<h3>Checkout related URLs</h3> <table border="0"> <tr> <th>Code</th> <th>Count</th> <th>URL</th> </tr> <TMPL_LOOP NAME=CHECKOUT_RELATED_URLS> <tr> <td><TMP_VAR NAME=HTTP_CODE></td> <td><TMP_VAR NAME=HTTP_CODE_COUNT></td> <td><TMPL_VAR NAME=URL></td> </tr> <TMPL_LOOP NAME=CHECKOUT_RELATED_URLS_REFERRER> <tr> <td><b>REFERRER</b></td> <td><TMPL_VAR NAME=REFERRER_COUNT></td> <td><TMPL_VAR NAME=REFERRER_URL></td> </tr> </TMPL_LOOP> </TMPL_LOOP> </table>

Replies are listed 'Best First'.
Re: HTML::Template nested loops
by Anonymous Monk on Jul 13, 2012 at 15:04 UTC
      Indeed it does. Thank you.
Re: HTML::Template nested loops
by linuxkid (Sexton) on Jul 12, 2012 at 23:59 UTC

    have you considered the Template ToolKit?


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://981505]
Approved by ww
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (8)
As of 2018-02-22 17:44 GMT
Find Nodes?
    Voting Booth?
    When it is dark outside I am happiest to see ...

    Results (297 votes). Check out past polls.