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.

[View source]

1418
1419
1420
# File 'lib/sinatra/base.rb', line 1418

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