lib/hamlit/compiler/silent_script_compiler.rb in hamlit-2.2.0 vs lib/hamlit/compiler/silent_script_compiler.rb in hamlit-2.2.1
- old
+ new
@@ -10,15 +10,14 @@
end
private
def compile_with_children(node, &block)
- temple = [:multi]
- temple << [:code, node.value[:text]]
- temple << [:newline]
- temple << yield(node)
- temple << [:code, 'end']
- temple
+ [:multi,
+ [:block, node.value[:text],
+ [:multi, [:newline], yield(node)],
+ ],
+ ]
end
end
end
end