lib/volt/page/bindings/each_binding.rb
def update_indexes_after(start_index)
    size = @templates.size
    if size > 0
      puts @templates.inspect
      start_index.upto(size-1) do |index|
        @templates[index].context.locals[:index].cur = index
      end
    end
  end
# When items are added or removed in the middle of the list, we need
# to update each templates index value.
When items are added or removed in the middle of the list, we need
to update each templates index value.
When items are added or removed in the middle of the list we need to update each templates index value .
def update_indexes_after(start_index)
    size = @templates.size
    if size > 0
      puts @templates.inspect
      start_index.upto(size-1) do |index|
        @templates[index].context.locals[:index].cur = index
      end
    end
  end
def update_indexes_after ( start_index ) size = @templates . size if size > 0 puts @templates . inspect start_index . upto ( size - 1 ) do | index | @templates [ index ] . context . locals [ :index ] . cur = index end end end
When items are added or removed in the middle of the list, we need
to update each templates index value.
When items are added or removed in the middle of the list we need to update each templates index value .
start_index