1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00

[Haml] Properly use the return value of Engine#render's precompiled_method_return_value.

This commit is contained in:
Nathan Weizenbaum 2009-10-29 14:37:18 -07:00
parent 60ab39b3ae
commit 843f7935bc

View file

@ -175,7 +175,7 @@ module Haml
@haml_buffer = buffer @haml_buffer = buffer
end end
eval(precompiled + "\n" + precompiled_method_return_value, str = eval(precompiled + ";" + precompiled_method_return_value,
scope, @options[:filename], @options[:line]) scope, @options[:filename], @options[:line])
# Get rid of the current buffer # Get rid of the current buffer
@ -183,7 +183,7 @@ module Haml
@haml_buffer = buffer.upper @haml_buffer = buffer.upper
end end
buffer.buffer str
end end
alias_method :to_html, :render alias_method :to_html, :render