Sha256: 2cd4a1ceebab4ee2e7f2a9868b339af70c0d46514c7c1450491cb0ed94348fda
Contents?: true
Size: 501 Bytes
Versions: 2
Compression:
Stored size: 501 Bytes
Contents
module Rack::App::FrontEnd::EndpointMethods def render(template_path, variables={}, options={}, &block) options = {:layout_path => self.class.layout}.merge(options) scope = Rack::App::FrontEnd::Template::Scope.new scope.extend(self.class.helpers) scope.inherit_instance_variables!(self) full_path = Rack::App::Utils.expand_path(template_path) template = Rack::App::FrontEnd::Template.new(full_path, options) return template.render(scope, variables, &block) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rack-app-front_end-0.15.1 | lib/rack/app/front_end/endpoint_methods.rb |
rack-app-front_end-0.15.0 | lib/rack/app/front_end/endpoint_methods.rb |