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? text = _dup_string_if_frozen(text) text.gsub!(/['\\]/, '\\\\\&') with_buffer{@src << " << '" << text << @text_end} end