Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

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: (10)
As of 2015-01-31 12:42 GMT
Find Nodes?
    Voting Booth?

    My top resolution in 2015 is:

    Results (258 votes), past polls