in reply to
Dancer2 - How to loop over a ref to a HoH
This is Template Toolkit 2 right? You cannot have dollar sign ($) in a variable name (like in partners.$partner.TPCOMPNAME), so you're referencing wrong item from the hash. See the docs.
My answer is wrong. See Re^2: Dancer2 - How to loop over a ref to a HoH from fishmonger.
Actually, according to the documentation, dollar signs are (or can be) used in var interpolation.
Could this solve your issue?
<% FOREACH partner IN partners.values %>
Partner: <% partner.TPCOMPNAME %> <% partner.TPTYPE %><br>
<% END %>
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
[% END %]
I guess so
I guess not
Results (179 votes),