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

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>

Comment on HTML::Template nested loops
Download Code
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2015-11-28 01:01 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (736 votes), past polls