class Haml::HTML::ERB

def add_expr_literal(src, code)

Parameters:
  • code (String) -- The Ruby expression to add to the buffer
  • src (String) -- The source buffer
def add_expr_literal(src, code)
  src << '<haml:loud>' << h(code) << '</haml:loud>'
  src << '<haml:block>' if block_opener?(code)
end