Sha256: 3227277dc37bcac9ce5f2127db80ecac725e75517ddd721b8b6f90bc0356baaa
Contents?: true
Size: 337 Bytes
Versions: 3
Compression:
Stored size: 337 Bytes
Contents
# 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) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
middleman-react-0.12.1 | lib/middleman-react/jsx/template.rb |
middleman-react-0.11.1 | lib/middleman-react/jsx/template.rb |
middleman-react-0.10.0 | lib/middleman-react/jsx/template.rb |