Refactor of standalone build tasks; Better templating of the core runner.html and the example SpecRunner.html

This commit is contained in:
Davis W. Frank
2011-06-15 09:15:40 -07:00
parent e59171935f
commit 6b2e45eab5
10 changed files with 189 additions and 61 deletions

View File

@@ -34,4 +34,14 @@ end
def version_hash
@version ||= JSON.parse(File.new("src/version.json").read);
end
def script_tags_for(files)
script_tag = Tilt::new('spec/templates/script_tag.html.erb')
files.inject([]) do |tags, f|
scope = OpenStruct.new :file => f
tags << script_tag.render(scope)
tags
end.join("\n ")
end