Sha256: 439525bd7af39d17d2103779fcc7f440f6016378900e34093e39a41496a113a6

Contents?: true

Size: 358 Bytes

Versions: 3

Compression:

Stored size: 358 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

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rack-app-front_end-0.8.0 lib/rack/app/front_end/singleton_methods.rb
rack-app-front_end-0.7.0 lib/rack/app/front_end/singleton_methods.rb
rack-app-front_end-0.6.0 lib/rack/app/front_end/singleton_methods.rb