lib/source_route/formats/html.rb in source_route-0.5.0 vs lib/source_route/formats/html.rb in source_route-0.6.0
- old
+ new
@@ -16,12 +16,10 @@
proxy.result_builder.import_return_value_to_call_chain
proxy.result_builder.treeize_call_chain
end
# TODO: any exception triggered in render method will be absorb totally, how to fix it?
html_output_str = slim_template.render(proxy.result_builder)
- File.open(filename, 'w') do |f|
- f << html_output_str
- end
+ File.write(filename, html_output_str)
end
end # END Html
end
end