Permalink
Browse files

Change reserved keyword 'yield' to 'yield_to' in README

  • Loading branch information...
1 parent 8a359fa commit e43e9f773af753f3cc716ac97200573afb501bcb @zungaphobia zungaphobia committed Jun 26, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 README.md
View
4 README.md
@@ -189,15 +189,15 @@ value.
eco.render template,
project: { id: 1, name: "Mobile app" }
- formFor: (project, yield) ->
+ formFor: (project, yield_to) ->
form =
textField: (attribute) =>
name = @escape attribute
value = @escape @project[attribute]
@safe "<input type='text' name='#{name}' value='#{value}'>"
url = "/projects/#{@project.id}"
- body = yield form
+ body = yield_to form
@safe "<form action='#{url}' method='post'>#{body}</form>"
Note: In general, you should use CoffeeScript's fat arrow (`=>`) to

0 comments on commit e43e9f7

Please sign in to comment.