class Haml::HTML::ERB
def add_stmt(src, code)
-
code
(String
) -- The Ruby statement to add to the buffer -
src
(String
) -- The source buffer
def add_stmt(src, code) src << '</haml:block>' if block_closer?(code) || mid_block?(code) src << '<haml:silent>' << h(code) << '</haml:silent>' unless code.strip == "end" src << '<haml:block>' if block_opener?(code) || mid_block?(code) end