Permalink
Browse files

Merge with bmizerany/master ...

We need to get a canonical repo. We both applied the same set of
changes for the :layout option.
  • Loading branch information...
2 parents b5faa57 + 4742898 commit 88afbb4ea99972d6771a682a2f9d0027301e2773 @rtomayko rtomayko committed Jan 11, 2009
Showing with 7 additions and 0 deletions.
  1. +7 −0 README.rdoc
View
@@ -189,6 +189,13 @@ method:
haml :index
end
+Some times you'll want to render a specific template with or without a
+layout (i.e. if a 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 88afbb4

Please sign in to comment.