Add application/javascript content_type to jst compiler. #172

Open
toots wants to merge 1 commits from audiosocket/jst-content-type into master
Showing only changes of commit a8a8d25f6d - Show all commits

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)