I have got this program(simplified from my actual program) where I am unable to access all variable from the method of the object passed to view, though I can access it from get. Am I missing something here?
all = ['hello', 'world']
require('zappajs') ->
@get '/foo': ->
console.log all
@render 'foo'
@view foo: ->
console.log all
I get an exception, all not defined when run using coffee hello.coffee.