groue/GRMustache — Issue #14: Render index in loop
Author: jasperblues
Created: 2012-03-03 13:50:05+00:00
State: open

Comrades, Mustachos!

I'm looking for an easy way to render the item index in a collection, without setting a property on all the fields. Like so:

{{#methods}}
do{{name}}
id
{{/methods}}

So, for index, I want the number 0, 1, 2, 3, etc. Is there a way to do that?