Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

HTML::Template nested loops

by mhearse (Hermit)
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>

Comment on HTML::Template nested loops
Download Code
Re: HTML::Template nested loops
by linuxkid (Sexton) on Jul 12, 2012 at 23:59 UTC

    have you considered the Template ToolKit?

Re: HTML::Template nested loops
by Anonymous Monk on Jul 13, 2012 at 15:04 UTC
      Indeed it does. Thank you.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://981505]
Approved by ww
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2014-07-13 13:14 GMT
Find Nodes?
    Voting Booth?

    When choosing user names for websites, I prefer to use:

    Results (249 votes), past polls