1
0
Fork 0
mirror of https://github.com/sinatra/sinatra synced 2023-03-27 23:18:01 -04:00

Updating README for :layout => true.

This commit is contained in:
Damian Janowski 2009-01-09 10:26:10 -02:00 committed by Blake Mizerany
parent b26df9ae95
commit 578bbabd82

View file

@ -189,6 +189,13 @@ method:
haml :index
end
Some times you'll want to render a specific template with or without a
layout based on whether the request is Ajax or not:
get '/' do
haml :index, :layout => !request.xhr?
end
== Helpers
The top-level <tt>helpers</tt> method