lib/middleman-react/jsx/template.rb in middleman-react-0.13.1 vs lib/middleman-react/jsx/template.rb in middleman-react-0.13.3
- old
+ new
@@ -8,10 +8,11 @@
class Template < Tilt::Template
self.default_mime_type = 'application/javascript'
cattr_accessor :harmony
cattr_accessor :strip_types
+
@harmony = false
@strip_types = false
def prepare
if self.class.harmony || options.key?(:harmony)
@@ -20,10 +21,10 @@
if self.class.strip_types || options.key?(:stripTypes)
options[:stripTypes] = self.class.strip_types
end
end
- def evaluate(scope, locals, &block)
+ def evaluate(_scope, _locals, &_block)
@output ||= JSX.transform(data, options)
end
end
end
end