lib/tadpole/providers/erb.rb in tadpole-0.1.3 vs lib/tadpole/providers/erb.rb in tadpole-0.1.4
- old
+ new
@@ -7,16 +7,16 @@
def initialize(full_path, owner)
super
erb = ERB.new(content, nil, '<>')
- instance_eval(<<-eof, full_path, -2)
+ instance_eval(<<-eof, full_path, 1)
def render(locals = nil, &block)
if locals
opts = owner.options
owner.options = owner.options.to_hash.update(locals)
end
- out = owner.instance_eval #{erb.src.inspect}
+ out = owner.instance_eval(#{erb.src.inspect}, __FILE__, __LINE__)
owner.options = opts if locals
out
end
eof
end
\ No newline at end of file