Method: Sinatra::Base.layout

Defined in:
lib/sinatra/base.rb

.layout(name = :layout, &block) ⇒ Object

Define the layout template. The block must return the template source.



1422
1423
1424
# File 'lib/sinatra/base.rb', line 1422

def layout(name = :layout, &block)
  template name, &block
end