Method: Orbit::Controller#render

Defined in:
lib/orbit/controller.rb

#render(template) ⇒ Object



32
33
34
35
36
37
38
39
40
41
42
# File 'lib/orbit/controller.rb', line 32

def render(template)
  root_path = Dir.pwd

  template_location = "#{root_path}/#{template}"

  templates = [template_location, self.class.layout].compact

  templates.inject(nil) do | prev, template |
    _render(template) { prev }
  end
end