Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

  • Loading branch information...
commit e43e9f773af753f3cc716ac97200573afb501bcb 1 parent 8a359fa
Patrick Slevin authored June 26, 2012

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  README.md
4  README.md
Source Rendered
@@ -189,7 +189,7 @@ value.
189 189
 
190 190
     eco.render template,
191 191
       project: { id: 1, name: "Mobile app" }
192  
-      formFor: (project, yield) ->
  192
+      formFor: (project, yield_to) ->
193 193
         form =
194 194
           textField: (attribute) =>
195 195
             name  = @escape attribute
@@ -197,7 +197,7 @@ value.
197 197
             @safe "<input type='text' name='#{name}' value='#{value}'>"
198 198
 
199 199
         url  = "/projects/#{@project.id}"
200  
-        body = yield form
  200
+        body = yield_to form
201 201
         @safe "<form action='#{url}' method='post'>#{body}</form>"
202 202
 
203 203
 Note: In general, you should use CoffeeScript's fat arrow (`=>`) to

0 notes on commit e43e9f7

Please sign in to comment.
Something went wrong with that request. Please try again.