lib/middleman-react/jsx/template.rb in middleman-react-0.0.2 vs lib/middleman-react/jsx/template.rb in middleman-react-0.10.0

- old
+ new

@@ -1,15 +1,18 @@ +# encoding: UTF-8 + require 'tilt' module Middleman module React + # Tilt Tempalte for handling JSX files class Template < Tilt::Template self.default_mime_type = 'application/javascript' def prepare; end def evaluate(scope, locals, &block) - @output ||= JSX::transform(data) + @output ||= JSX.transform(data) end end end end