From 985668470b223043e94b543654dd96e531f3fec9 Mon Sep 17 00:00:00 2001 From: Will Jordan Date: Sat, 10 Mar 2018 01:58:19 -0800 Subject: [PATCH] unfreeze TempleEngine precompiled string literals (#983) Maintain backwards-compatibility in public API. --- lib/haml/temple_engine.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/haml/temple_engine.rb b/lib/haml/temple_engine.rb index 915c7582ff..3a10bf5888 100644 --- a/lib/haml/temple_engine.rb +++ b/lib/haml/temple_engine.rb @@ -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. @@ -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