Add application/javascript content_type to jst compiler. #172

Open
toots wants to merge 1 commits from audiosocket/jst-content-type into master

View File

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