Skip to content

Commit

Permalink
adding option support for coffeescript
Browse files Browse the repository at this point in the history
  • Loading branch information
blahed authored and rtomayko committed Feb 8, 2010
1 parent eecdea4 commit b4245c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/tilt.rb
Expand Up @@ -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
Expand Down

0 comments on commit b4245c7

Please sign in to comment.