Skip to content

Commit

Permalink
Updated documentation (typos correction).
Browse files Browse the repository at this point in the history
  • Loading branch information
shimaore committed Apr 24, 2012
1 parent 26e65b4 commit 8f6fef0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/0.3-gumbo/reference.md
Expand Up @@ -100,7 +100,7 @@ A function that will be available to both the HTTP and sockets scopes. It will h

@get '/': ->
@sum 5, 7

@on connection: ->
@sum 26, 18

Expand All @@ -109,12 +109,12 @@ A function that will be available to both the HTTP and sockets scopes. It will h
console.log a # 5 vs 26
console.log @request # available vs undefined
console.log @emit # undefined vs available

Since the parameter is actually an object, you can define any number of helpers in one go:

@helper
@sum: (a, b) -> a + b
@subtract: (a, b) -> a - b
sum: (a, b) -> a + b
subtract: (a, b) -> a - b

### @view

Expand Down Expand Up @@ -508,4 +508,4 @@ When `param`:

@get '/:foo': (c) ->
c.foo += '!'
@render 'index'
@render 'index'

0 comments on commit 8f6fef0

Please sign in to comment.