Module: Rack::App::FrontEnd::Helpers::Rendering

Included in:
Rack::App::FrontEnd::Helpers
Defined in:
lib/rack/app/front_end/helpers/rendering.rb

Instance Method Summary collapse

Instance Method Details

#render(template_path, variables = {}, options = {}, &block) ⇒ Object



3
4
5
6
7
# File 'lib/rack/app/front_end/helpers/rendering.rb', line 3

def render(template_path, variables={}, options={}, &block)
  full_path = Rack::App::Utils.expand_path(template_path)
  template = Rack::App::FrontEnd::Template.new(full_path,options)
  return template.render(self, variables, &block)
end