Class: React::JSX::Template

Inherits:
Tilt::Template
  • Object
show all
Defined in:
lib/react/jsx/template.rb

Overview

Sprockets 2-compliant processor

Instance Method Summary collapse

Instance Method Details

#evaluate(scope, locals, &block) ⇒ Object



12
13
14
# File 'lib/react/jsx/template.rb', line 12

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

#prepareObject



9
10
# File 'lib/react/jsx/template.rb', line 9

def prepare
end