Updating README for :layout => true.
This commit is contained in:
parent
b26df9ae95
commit
578bbabd82
|
@ -189,6 +189,13 @@ method:
|
||||||
haml :index
|
haml :index
|
||||||
end
|
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
|
== Helpers
|
||||||
|
|
||||||
The top-level <tt>helpers</tt> method
|
The top-level <tt>helpers</tt> method
|
||||||
|
|
Loading…
Reference in New Issue