Method: Sinatra::Base.layout
- Defined in:
- lib/sinatra/base.rb
permalink .layout(name = :layout, &block) ⇒ Object
Define the layout template. The block must return the template source.
1418 1419 1420 |
# File 'lib/sinatra/base.rb', line 1418 def layout(name = :layout, &block) template name, &block end |