Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^3: Dancer2 - How to loop over a ref to a HoH

by arkturuz (Curate)
on Jun 10, 2014 at 17:57 UTC ( #1089441=note: print w/replies, xml ) Need Help??


in reply to Re^2: Dancer2 - How to loop over a ref to a HoH
in thread Dancer2 - How to loop over a ref to a HoH

Sorry about that, somehow I missed it, and it's been a long time since I last hacked on Template Toolkit.

Could this solve your issue?

<% FOREACH partner IN partners.values %> Partner: <% partner.TPCOMPNAME %> <% partner.TPTYPE %><br> <% END %>

Replies are listed 'Best First'.
Re^4: Dancer2 - How to loop over a ref to a HoH
by fishmonger (Hermit) on Jun 10, 2014 at 19:27 UTC

    No, that didn't work under either of the template engines.

    This is what works when using TT.

    [% FOREACH partner IN partners.keys %] Partner: [% partners.$partner.TPCOMPNAME %] [% partners.$partner.T +PTYPE %]<br> [% END %]

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (9)
As of 2016-09-28 17:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (533 votes). Check out past polls.