HTML ReadyDoc loop index
Posted: Thu Jul 25, 2019 4:10 pm
In my ReadyDoc I'm looping over a collection using a section. I'm then using IronPython to store and increment the index that I use in the doc.
Is there a better way to do this, possibly using some built-in function or construct? Handlebars syntax mentions {{@index}} but that doesn't seem to work.
Code: Select all
{{# .Root.Buyers}}
{{& GetBuyerIndex}}]
{{& IncrementBuyerIndex}}
{{/}}