Permalink
Browse files

adding option support for coffeescript

  • Loading branch information...
1 parent eecdea4 commit b4245c75849620b708cca13e742994c2ecde981a @blahed blahed committed with Jan 14, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/tilt.rb
View
@@ -545,11 +545,11 @@ def initialize_engine
end
def compile!
- @engine = ::CoffeeScript::Parser.new.parse(data)
+ @engine = ::CoffeeScript::compile(data, options)
end
def evaluate(scope, locals, &block)
- @engine.compile
+ @engine
end
end
register 'coffee', CoffeeTemplate

0 comments on commit b4245c7

Please sign in to comment.