class Haml::Compiler::ChildrenCompiler
def compile(node, &block)
def compile(node, &block) temple = [:multi] return temple if node.children.empty? temple << [:whitespace] if prepend_whitespace?(node) node.children.each do |n| rstrip_whitespace!(temple) if nuke_prev_whitespace?(n) insert_newlines!(temple, n) temple << moving_lineno(n) { block.call(n) } temple << [:whitespace] if insert_whitespace?(n) end rstrip_whitespace!(temple) if nuke_inner_whitespace?(node) temple end