Thanks for the response, I’m aware of DecoratedCollection but not sure how it can solve this problem. I’m able to use first, last and index variables and since I have an inner loop, the loop in inside overrides the values of index, first and last. Let’s consider this example:
least( event0_count, event1_count, event2_count ),
least( event0_count, event1_count, event2_count ),
least( event0_count, event1_count, event2_count )
However I need to generate the following:
least( event0_count),
least( event0_count, event1_count ),
least( event0_count, event1_count, event2_count )
It may be possible to render if I can access the parent scope and check if the child index is less than the parent index like this one:
{{#steps}}
least({{#steps}} {{#parent.index < child.index}} event{{index}}_count{{^last}},{{/last}} {{/parent.index < child.index}} {{/steps}}){{^last}},{{/last}}
{{/steps}}
However this template is not valid so I’m not able to do it.
Best,
Emre