Add application/javascript content_type to jst compiler.

This commit is contained in:
Romain Beauxis 2012-12-12 15:25:58 -06:00
parent aa1d989a90
commit a8a8d25f6d

View File

@ -3,6 +3,9 @@ require 'sprockets/jst_processor'
module Jasmine::Headless module Jasmine::Headless
class JSTTemplate < Sprockets::JstProcessor class JSTTemplate < Sprockets::JstProcessor
include Jasmine::Headless::FileChecker include Jasmine::Headless::FileChecker
self.default_mime_type = 'application/javascript'
def evaluate(*args) def evaluate(*args)
if bad_format?(file) if bad_format?(file)
alert_bad_format(file) alert_bad_format(file)