spec/support/template_cache.coffee in angular-html2js-0.0.3 vs spec/support/template_cache.coffee in angular-html2js-0.0.4

- old
+ new

@@ -1,9 +1,13 @@ class AngularModule constructor: (@name, @deps) -> templates = @templates = {} - run: (block) -> + run: (injectable) -> + if injectable instanceof Array + [injected..., block] = injectable + else + block = injectable block put: (id, content) => @templates[id] = content # Evaluates generated js code fot the template cache