cc4d7ee8 by Adam Heath

Add support for each-* creating an {name}_index iteration count;

this is 0-based.  If each-* happens to be given an object, then _index
will contain the key.
1 parent b4813fb7
......@@ -347,6 +347,7 @@ Rivets.binders =
data = {}
data[n] = m for n, m of @view.models
data[@args[0]] = item
data["#{@args[0]}_index"] = i
itemEl = el.cloneNode true
if iterated.length > 0
previous = iterated[iterated.length - 1].els[0]
......