Sha256: c094b42224b8cc0260f49b6c76abe5e4145aa423c45b6fc567af47b0032b2f8e

Contents?: true

Size: 276 Bytes

Versions: 1

Compression:

Stored size: 276 Bytes

Contents

require 'tilt'

module Middleman
  module React
    class Template < Tilt::Template
      self.default_mime_type = 'application/javascript'

      def prepare; end

      def evaluate(scope, locals, &block)
        @output ||= JSX::transform(data)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
middleman-react-0.0.2 lib/middleman-react/jsx/template.rb