lib/middleman-react/extension.rb in middleman-react-0.12.1 vs lib/middleman-react/extension.rb in middleman-react-0.12.1.1

- old
+ new

@@ -6,10 +6,18 @@ module Middleman module React # Middleman extension entry point class Extension < Middleman::Extension + option :harmony, false, 'The option of harmony' + option :strip_types, false, 'The option of stripTypes' + def initialize(app, options_hash = {}, &block) + super + + Middleman::React::Template.harmony = options[:harmony] + Middleman::React::Template.strip_types = options[:strip_types] + ::Tilt.register 'jsx', Middleman::React::Template ::Sprockets.register_engine 'jsx', Middleman::React::Template end end end