lib/petroglyph/scope.rb in petroglyph-0.0.2 vs lib/petroglyph/scope.rb in petroglyph-0.0.3

- old
+ new

@@ -74,19 +74,19 @@ merge fragment end def partial(name, locals = {}) data = Petroglyph.partial(name, file) - scope = Scope.new(@context, locals) - scope.instance_eval(data) + scope = Scope.new(@context, locals, file) + scope.instance_eval(data.to_s) merge scope.value end def method_missing(method, *args, &block) if @locals and @locals.has_key?(method) @locals[method] elsif @context.respond_to?(method) - @context.send(method) + @context.send(method, *args) else super end end