Sha256: 9fde5a579370bf343ff2310828c445426f65a5241bd536333185eebcab2db5ca
Contents?: true
Size: 679 Bytes
Versions: 7
Compression:
Stored size: 679 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 helpers(&block) @helpers ||= lambda { helpers_module = Module.new helpers_module.__send__(:include, Rack::App::FrontEnd::Helpers) helpers_module.__send__(:extend, Rack::App::FrontEnd::SyntaxSugar::DSL) }.call @helpers.class_eval(&block) unless block.nil? return @helpers end end
Version data entries
7 entries across 7 versions & 1 rubygems