module Highlights::Formatter::HTML

Public Instance Methods

render_html() click to toggle source
# 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