Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Updated documentation (typos correction).

  • Loading branch information...
commit 8f6fef01a7c93399f2395b9e476fb89a96ad61f1 1 parent 26e65b4
@shimaore shimaore authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 docs/0.3-gumbo/reference.md
View
10 docs/0.3-gumbo/reference.md
@@ -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
@@ -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
@@ -508,4 +508,4 @@ When `param`:
@get '/:foo': (c) ->
c.foo += '!'
- @render 'index'
+ @render 'index'
Please sign in to comment.
Something went wrong with that request. Please try again.