3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# File 'lib/templates/awesome/awesome_template.rb', line 3
def write
@name = File.basename(Dir.pwd).gsub(/^\w+-|-\w+$/, "")
report.each_pair do |section, contents|
if template_exists?(section)
create_instance_var(section, contents)
@html = erbify(section)
html = erbify('layout')
fn = output_filename(section)
MetricFu.report.save_output(html, MetricFu.output_directory, fn)
end
end
if template_exists?('index')
@html = erbify('index')
html = erbify('layout')
fn = output_filename('index')
MetricFu.report.save_output(html, MetricFu.output_directory, fn)
end
end
|