module Rack::App::FrontEnd::Helpers::Rendering

Public Instance Methods

render(template_path, variables={}, options={}, &block) click to toggle source
# 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