module SiteValidator::Reporter
Public Instance Methods
generate_html(sitemap, filename)
click to toggle source
Create the html report for the sitemap
# File lib/site_validator/reporter.rb, line 10 def generate_html(sitemap, filename) template = ERB.new(open(File.dirname(__FILE__)+'/templates/site_validator.html.erb').read) File.open(filename, 'w') do |f| f.write(template.result(sitemap.get_binding)) end rescue Exception => e puts "ERROR generating report: #{e}" end