Module: SourceRoute::Formats::Html
- Defined in:
- lib/source_route/formats/html.rb
Class Method Summary collapse
-
.render(results) ⇒ Object
results is instance of Wrapper.
Class Method Details
.render(results) ⇒ Object
results is instance of Wrapper
9 10 11 12 13 14 15 |
# File 'lib/source_route/formats/html.rb', line 9 def self.render(results) template_path = File. "../html_template.slim", __FILE__ html_output_str = Slim::Template.new(template_path).render(results) File.open("#{Time.now.strftime('%M%S-%H-%m-%d')}-source-route.html", 'w') do |f| f << html_output_str end end |