Skip to content

Commit

Permalink
Section about how to pass a custom layout
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Schneider authored and Chris Schneider committed Jul 2, 2010
1 parent 15c2f15 commit 011af20
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions book/Views.markdown
Expand Up @@ -110,6 +110,15 @@ pass :layout => false, and you're good.
haml :index, :layout => false
end

### Specifiying a custom layout

If you want to use a layout not named "layout", you can override the name
that's used by passing :layout => :custom_layout

get '/' do
haml :index, :layout => :custom_layout
end

In File Views
-------------

Expand Down

0 comments on commit 011af20

Please sign in to comment.