Sha256: 96f73302689853aa2db56a7dcf98e81fc1148ac4fbeefd82431c9ce2b97317fb
Contents?: true
Size: 340 Bytes
Versions: 1
Compression:
Stored size: 340 Bytes
Contents
module Rack::App::FrontEnd::InstanceMethods def render(template_path) options = {} options[:layout]= self.class.layout if self.class.respond_to?(:layout) full_path = Rack::App::Utils.expand_path(template_path) template = Rack::App::FrontEnd::Template.new(full_path, options) return template.render(self) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rack-app-front_end-0.10.0 | lib/rack/app/front_end/instance_methods.rb |