# File lib/padrino/rendering/erubi_template.rb, line 5 def add_expression_result(code) @src << " @__in_ruby_literal = true; #{bufvar}.concat((" << code << ').to_s); @__in_ruby_literal = false;' end
# File lib/padrino/rendering/erubi_template.rb, line 9 def add_expression_result_escaped(code) @src << " #{bufvar}.safe_concat (" << code << ");" end
# File lib/padrino/rendering/erubi_template.rb, line 13 def add_text(text) @src << " #{bufvar}.safe_concat '" << text.gsub(/['\]/, '\\\&') << "';" unless text.empty? end