From a8a8d25f6d361d1991e193ee984b87f36e5a7030 Mon Sep 17 00:00:00 2001 From: Romain Beauxis Date: Wed, 12 Dec 2012 15:25:58 -0600 Subject: [PATCH] Add application/javascript content_type to jst compiler. --- lib/jasmine/headless/jst_template.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/jasmine/headless/jst_template.rb b/lib/jasmine/headless/jst_template.rb index b6d8f1c..b5f68e1 100644 --- a/lib/jasmine/headless/jst_template.rb +++ b/lib/jasmine/headless/jst_template.rb @@ -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)