lib/tilt/haml.rb in tilt-2.0.8 vs lib/tilt/haml.rb in tilt-2.0.9
- old
+ new
@@ -60,11 +60,11 @@
local_assigns = super
@engine.instance_eval do
<<-RUBY
begin
extend Haml::Helpers
- _hamlout = @haml_buffer = Haml::Buffer.new(@haml_buffer, #{options_for_buffer.inspect})
+ _hamlout = @haml_buffer = Haml::Buffer.new(haml_buffer, #{options_for_buffer.inspect})
_erbout = _hamlout.buffer
__in_erb_template = true
_haml_locals = locals
#{local_assigns}
RUBY
@@ -74,10 +74,10 @@
def precompiled_postamble(locals)
@engine.instance_eval do
<<-RUBY
#{precompiled_method_return_value}
ensure
- @haml_buffer = @haml_buffer.upper if @haml_buffer
+ @haml_buffer = @haml_buffer.upper if haml_buffer
end
RUBY
end
end
end