lib/roger/template.rb in roger-0.10.0 vs lib/roger/template.rb in roger-0.11.0

- old
+ new

@@ -190,13 +190,9 @@ def partial(name, options = {}) if template_path = self.template.find_template(name, :partials_path) partial_template = Tilt.new(template_path.to_s) partial_template.render(self, options[:locals] || {}) - elsif template_path = self.template.find_template(name + ".part", :partials_path) - template = Tilt::ERBTemplate.new(template_path.to_s) - context = MockupTemplate::TemplateContext.new(options[:locals] || {}) - template.render(context, :env => self.env) else raise ArgumentError, "No such partial #{name}, referenced from #{self.template.source_path}" end end \ No newline at end of file