Commit 21145b3 1 parent 1a25a57 commit 21145b3 Copy full SHA for 21145b3
File tree 1 file changed +6
-2
lines changed
lib/haml_coffee_assets/rails
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -36,13 +36,17 @@ class Engine < ::Rails::Engine
36
36
config . assets . configure do |env |
37
37
if env . respond_to? ( :register_transformer )
38
38
env . register_mime_type 'text/hamlc' , extensions : [ '.hamlc' ]
39
- env . register_mime_type 'text/jst+hamlc' , extensions : [ '.jst.hamlc' ]
40
39
env . register_transformer 'text/hamlc' , 'application/javascript' , ::HamlCoffeeAssets ::Transformer
40
+
41
+ env . register_mime_type 'text/jst+hamlc' , extensions : [ '.jst.hamlc' ]
41
42
env . register_transformer 'text/jst+hamlc' , 'application/javascript+function' , ::HamlCoffeeAssets ::Transformer
42
43
43
44
# support for chaining via ERB, documented via https://github.com/rails/sprockets/pull/807
44
- env . register_mime_type 'text/hamlc+ruby' , extensions : [ '.hamlc.erb' , '.jst.hamlc.erb' ]
45
+ env . register_mime_type 'text/hamlc+ruby' , extensions : [ '.hamlc.erb' ]
45
46
env . register_transformer 'text/hamlc+ruby' , 'text/hamlc' , ::Sprockets ::ERBProcessor
47
+
48
+ env . register_mime_type 'text/jst+hamlc+ruby' , extensions : [ '.jst.hamlc.erb' ]
49
+ env . register_transformer 'text/jst+hamlc+ruby' , 'text/jst+hamlc' , ::Sprockets ::ERBProcessor
46
50
end
47
51
48
52
if env . respond_to? ( :register_engine )
You can’t perform that action at this time.
0 commit comments