Skip to content

Commit

Permalink
unfreeze TempleEngine precompiled string literals (#983)
Browse files Browse the repository at this point in the history
Maintain backwards-compatibility in public API.
  • Loading branch information
wjordan authored and k0kubun committed Mar 10, 2018
1 parent 6c3612f commit 9856684
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/haml/temple_engine.rb
Expand Up @@ -54,7 +54,7 @@ def precompiled
end

def precompiled_with_return_value
"#{precompiled};#{precompiled_method_return_value}"
"#{precompiled};#{precompiled_method_return_value}".dup
end

# The source code that is evaluated to produce the Haml document.
Expand All @@ -77,7 +77,7 @@ def precompiled_with_ambles(local_names, after_preamble: '')
@haml_buffer = @haml_buffer.upper if @haml_buffer
end
END
"#{preamble}#{locals_code(local_names)}#{precompiled}#{postamble}"
"#{preamble}#{locals_code(local_names)}#{precompiled}#{postamble}".dup
end

private
Expand Down

0 comments on commit 9856684

Please sign in to comment.