Sha256: a5eca58b44fac32f289e461ccf51b59ff1a1f378a4732c619ace59ff886c3edd
Contents?: true
Size: 522 Bytes
Versions: 1
Compression:
Stored size: 522 Bytes
Contents
# -*- encoding: utf-8 -*- require 'erb' module W3Clove module Reporter extend self ## # Create the html report for the sitemap def generate_html(sitemap) template = ERB.new(open(File.dirname(__FILE__)+'/templates/w3clove.html.erb').read) File.open('w3clove.html', 'w') do |f| f.write(template.result(sitemap.get_binding)) end rescue Exception => e puts "ERROR generating report: #{e}" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
w3clove-0.3.0 | lib/w3clove/reporter.rb |