Hi there,
I'm trying to use a loop context as an argument for partial, but it does not seem to get passed in (nor for macros):
{% for hop in item.getOutboundHops() %}
{{ partial('private/flight_hop',{'loop':loop,'hop':hop}) }}
{% endfor %}
I get no error message, but the loop properies are always empty. I've also tried assigning it to a variable, to no avail:
{% for hop in item.getOutboundHops() %}
{% set l = loop %}
{{ partial('private/flight_hop',{'loop':l,'hop':hop}) }}
{% endfor %}
Could someone give a hint, so I don't have to pass in the context properties as seperate arguments?
Thanks!