Refactor of standalone build tasks; Better templating of the core runner.html and the example SpecRunner.html
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user