Sha256: b4c86d1769b21bb80f4b4cc6a281556256c9dccf754dad14edf9fa40e819664a
Contents?: true
Size: 684 Bytes
Versions: 15
Compression:
Stored size: 684 Bytes
Contents
class StandardTemplate < MetricFu::Template def write report.each_pair do |section, contents| mf_debug section if template_exists?(section) create_instance_var(section, contents) html = erbify(section) fn = output_filename(section) MetricFu.report.save_output(html, MetricFu.output_directory, fn) end end # Instance variables we need should already be created from above if template_exists?('index') html = erbify('index') fn = output_filename('index') MetricFu.report.save_output(html, MetricFu.output_directory, fn) end end def template_directory File.dirname(__FILE__) end end
Version data entries
15 entries across 15 versions & 1 rubygems