lib/skim/template.rb in skim-0.8.6 vs lib/skim/template.rb in skim-0.9.0

- old
+ new

@@ -5,18 +5,21 @@ class Template self.default_mime_type = "application/javascript" def coffee_script_src - engine = self.class.build_engine({ + + engine = Engine.new(options.merge({ :streaming => false, # Overwrite option: No streaming support in Tilt :file => eval_file, - :indent => 2 }, options) - <<SRC + :indent => 2 + })) + src = engine.call(data) +<<-SRC #{self.class.skim_src unless engine.options[:use_asset]} return (context = {}) -> Skim.withContext.call {}, context, -> -#{engine.call(data)} +#{src} SRC end def prepare @src = CoffeeScript.compile(coffee_script_src)