Permalink
Browse files

fix documentation of variable interpolation into templates

  • Loading branch information...
1 parent 18723bb commit 95aca7612e30e284a5e6eb187740e2a79cdaf3f9 @bleything bleything committed with rtomayko Nov 30, 2008
Showing with 2 additions and 2 deletions.
  1. +2 −2 README.rdoc
View
@@ -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

0 comments on commit 95aca76

Please sign in to comment.