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:
parent
60ab39b3ae
commit
843f7935bc
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue