class Erubi::Engine
def add_text(text)
Add raw text to the template. Modifies argument if argument is mutable as a memory optimization.
def add_text(text) return if text.empty? if text.frozen? text = text.gsub(/['\\]/, '\\\\\&') else text.gsub!(/['\\]/, '\\\\\&') end with_buffer{@src << " << '" << text << @text_end} end