class Gors::Controller

Attributes

info[RW]

Public Class Methods

new(context) click to toggle source
# File lib/gors.rb, line 179
def initialize(context)
  @info = context
   if(self.respond_to? "before")
    self.before
   end
end

Public Instance Methods

erb(template) click to toggle source
# File lib/gors.rb, line 186
def erb template
  renderer = Tilt::ERBTemplate.new("views/layout.erb")
  output = renderer.render(self){ Tilt::ERBTemplate.new("views/"+template.to_s+".erb").render(self) }
  return output
end
params() click to toggle source
# File lib/gors.rb, line 192
def params
  @info.request.params
end