Add application/javascript content_type to jst compiler. #172
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user