class Middleman::Server
def self.page(url, options={}, &block)
page "/about.html", :layout => false
The page method allows the layout to be set on a specific path
def self.page(url, options={}, &block) url << settings.index_file if url.match(%r{/$}) options[:layout] ||= current_layout get(url) do return yield if block_given? process_request(options) end end