In Files

Methods

Gon::Rabl

Public Class Methods

handler(args, global = false) click to toggle source
# File lib/gon/rabl.rb, line 16
def handler(args, global = false)
  options = parse_options_from args, global
  if global && !options[:template]
    raise 'You should provide :template when use rabl with global variables'
  end

  data = parse_rabl            Gon::Base.get_template_path(options, 'rabl'),
    Gon::Base.get_controller(options),
    options[:locals]

  [data, options]
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.