Sha256: e38acd9479d616f55903ca0210dcf40f50c0290bbeab6e798d92f60706a993d9
Contents?: true
Size: 446 Bytes
Versions: 3
Compression:
Stored size: 446 Bytes
Contents
module Rack::App::FrontEnd::InstanceMethods def render(template_path) options = {} options[:layout]= self.class.layout if self.class.respond_to?(:layout) extended_template_path = Rack::App::Utils.expand_path(template_path) full_path = File.exist?(extended_template_path) ? extended_template_path : template_path template = Rack::App::FrontEnd::Template.new(full_path, options) return template.render(self) end end
Version data entries
3 entries across 3 versions & 1 rubygems