Module: Highlights::Formatter::HTML
- Included in:
- Renderer
- Defined in:
- lib/highlights/formatter/html.rb
Instance Method Summary collapse
Instance Method Details
#render_html ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/highlights/formatter/html.rb', line 4 def render_html file = File.join(File.dirname(__FILE__), "./template.html.erb") template = File.read(file) File.open(@outfile, 'w') do |file| file.write(ERB.new(template).result(binding)) end end |