class ActionView::PartialRenderer

def collection_without_template

def collection_without_template
  view, locals, collection_data = @view, @locals, @collection_data
  cache = {}
  keys  = @locals.keys
  index = -1
  @collection.map do |object|
    index += 1
    path, as, counter = collection_data[index]
    locals[as]      = object
    locals[counter] = index
    template = (cache[path] ||= find_template(path, keys + [as, counter]))
    template.render(view, locals)
  end
end