def fetch_partial(template, opts={}, conditions = {})
template_id = template.to_s
if template_id =~ %r{^/}
template_path = File.dirname(template_id) / "_#{File.basename(template_id)}"
else
kontroller = (m = template_id.match(/.*(?=\/)/)) ? m[0] : controller_name
template_id = "_#{File.basename(template_id)}"
end
unused, template_key = _template_for(template_id, opts.delete(:format) || content_type, kontroller, template_path)
fetch_proc = lambda { partial(template, opts) }
concat(Merb::Cache[_lookup_store(conditions)].fetch(template_key, opts, conditions, &fetch_proc), fetch_proc.binding)
end