Skip to content

Commit

Permalink
Merge pull request #273 from SaitoWu/mimetype
Browse files Browse the repository at this point in the history
Add mimetype to BabelTemplate
  • Loading branch information
judofyr committed Jan 6, 2016
2 parents b0a320e + 1f49fb9 commit ba70e95
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/tilt/babel.rb
Expand Up @@ -3,6 +3,8 @@

module Tilt
class BabelTemplate < Template
self.default_mime_type = 'application/javascript'

def prepare
options[:filename] ||= file
end
Expand All @@ -12,4 +14,3 @@ def evaluate(scope, locals, &block)
end
end
end

0 comments on commit ba70e95

Please sign in to comment.