Skip to content

Commit

Permalink
Updating README for :layout => true.
Browse files Browse the repository at this point in the history
  • Loading branch information
djanowski authored and bmizerany committed Jan 10, 2009
1 parent b26df9a commit 578bbab
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.rdoc
Expand Up @@ -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
Expand Down

0 comments on commit 578bbab

Please sign in to comment.