Browse files

added disable :layout by default

Signed-off-by: Konstantin Haase <>
  • Loading branch information...
1 parent e801b5a commit 9420a9b893eb2d8fdd793a58079aa3d7e20ab2c9 @burningTyger burningTyger committed with rkh Jan 8, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 README.rdoc
3 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 9420a9b

Please sign in to comment.