class Sprockets::CoffeeJsxPostprocessor
Public Class Methods
call(input)
click to toggle source
# File lib/sprockets/coffee-jsx-postprocessor.rb, line 15 def self.call(input) filename = input[:source_path] || input[:filename] source = input[:data] run(filename, source) end
run(filename, source)
click to toggle source
# File lib/sprockets/coffee-jsx-postprocessor.rb, line 21 def self.run(filename, source) ::CoffeeReact.jstransform(source) end
Public Instance Methods
evaluate(scope, locals, &block)
click to toggle source
# File lib/sprockets/coffee-jsx-postprocessor.rb, line 11 def evaluate(scope, locals, &block) self.class.run(scope.pathname.to_s, data) end
prepare()
click to toggle source
# File lib/sprockets/coffee-jsx-postprocessor.rb, line 8 def prepare end