Permalink
Browse files

Updating README for :layout => true.

  • Loading branch information...
1 parent b26df9a commit 578bbabd825b0cf5a2f4a0a40eacaad7c998e782 @djanowski djanowski committed with bmizerany Jan 9, 2009
Showing with 7 additions and 0 deletions.
  1. +7 −0 README.rdoc
View
7 README.rdoc
@@ -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

0 comments on commit 578bbab

Please sign in to comment.