Module: ExecJS::Rails::ViewHelper

Defined in:
lib/execjs/rails/view_helper.rb

Instance Method Summary collapse

Instance Method Details

#execjs_call(function, *args) ⇒ Object



5
6
7
# File 'lib/execjs/rails/view_helper.rb', line 5

def execjs_call(function, *args)
  Renderer.call(function, *args)
end

#execjs_render(path, opts = {}) ⇒ Object



9
10
11
# File 'lib/execjs/rails/view_helper.rb', line 9

def execjs_render(path, opts = {})
  Renderer.render(path, Renderer.config.view_to_function_options.call(self, opts))
end