Class: Padrino::Rendering::SafeERB::Compiler

Inherits:
ERB::Compiler
  • Object
show all
Defined in:
lib/padrino/rendering/erb_template.rb

Instance Method Summary collapse

Instance Method Details

#add_insert_cmd(out, content) ⇒ Object



5
6
7
8
9
# File 'lib/padrino/rendering/erb_template.rb', line 5

def add_insert_cmd(out, content)
  out.push("@__in_ruby_literal = true")
  super
  out.push("@__in_ruby_literal = false")
end