Sha256: 7df452126cb7b1a4f9dfd0c070cd10b9afeb28a3c614864e0519a8645eb4c482
Contents?: true
Size: 652 Bytes
Versions: 1
Compression:
Stored size: 652 Bytes
Contents
module Rack::App::FrontEnd::SingletonMethods def mount_folder(folder_path) Rack::App::FrontEnd::FolderMounter.new(self).mount(Rack::App::Utils.expand_path(folder_path)) end alias mount_templates_from mount_folder def layout(layout_path=nil) @layout = Rack::App::Utils.expand_path(layout_path) unless layout_path.nil? @layout end def template_options(hash=nil) @template_options ||= {:default_encoding => "utf-8"} @template_options.merge!(hash) if hash.is_a?(Hash) @template_options end def helpers(&block) @helpers ||= Module.new @helpers.class_eval(&block) unless block.nil? @helpers end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rack-app-front_end-0.14.0 | lib/rack/app/front_end/singleton_methods.rb |