Browse files

added disable :layout by default

  • Loading branch information...
1 parent e801b5a commit 87c4b1af58cfb35365cfe0d8764e2db689a6538e @burningTyger committed Jan 8, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 README.rdoc
@@ -525,7 +525,8 @@ Templates may also be defined using the top-level <tt>template</tt> method:
If a template named "layout" exists, it will be used each time a template
-is rendered. You can disable layouts by passing <tt>:layout => false</tt>.
+is rendered. You can individually disable layouts by passing <tt>:layout => false</tt>
+or disable them by default via <tt>set :haml, :layout => false</tt>.
get '/' do
haml :index, :layout => !request.xhr?

0 comments on commit 87c4b1a

Please sign in to comment.