class Sinatra::Base

def layout(name = :layout, &block)

Define the layout template. The block must return the template source.
def layout(name = :layout, &block)
  template name, &block
end