From 578bbabd825b0cf5a2f4a0a40eacaad7c998e782 Mon Sep 17 00:00:00 2001 From: Damian Janowski Date: Fri, 9 Jan 2009 10:26:10 -0200 Subject: [PATCH] Updating README for :layout => true. --- README.rdoc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.rdoc b/README.rdoc index badd0174..6d2b146d 100644 --- a/README.rdoc +++ b/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 helpers method