added the default disable :layout setting #158

Closed
wants to merge 1 commit into from
+2 −1
View
3 README.rdoc
@@ -525,7 +525,8 @@ Templates may also be defined using the top-level <tt>template</tt> method:
end
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?