From 95aca7612e30e284a5e6eb187740e2a79cdaf3f9 Mon Sep 17 00:00:00 2001 From: Ben Bleything Date: Sun, 30 Nov 2008 09:21:32 -0800 Subject: [PATCH] fix documentation of variable interpolation into templates --- README.rdoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.rdoc b/README.rdoc index 6b16a570..3d178c12 100644 --- a/README.rdoc +++ b/README.rdoc @@ -140,14 +140,14 @@ blocks can be accessed direcly in views: get '/:id' do @foo = Foo.find(params[:id]) - haml '%h1== @foo.name' + haml '%h1= @foo.name' end Or, specify an explicit Hash of local variables: get '/:id' do foo = Foo.find(params[:id]) - haml '%h1== foo.name', :locals => { :foo => foo } + haml '%h1= foo.name', :locals => { :foo => foo } end This is typically used when rendering templates as partials from within