Skip to content

Commit 3996e34

Browse files
committedApr 7, 2015
Set app/js as the default mime type
As the class ivar value is not inherited. fixes #5 (hopefully)
1 parent 1e41291 commit 3996e34

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎lib/opal/haml/processor.rb

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
module Opal
55
module Haml
66
class Processor < ::Opal::Processor
7+
self.default_mime_type = 'application/javascript'
8+
79
def evaluate(context, locals, &block)
810
@data = Opal::Haml.compile_haml @data, context.logical_path.sub(/^templates\//, '')
911
super

0 commit comments

Comments
 (0)