You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With Zappa version 3, the syntax for the get and view functions has changed. Double check my syntax, this is just a quick conversion, but I think it should look like this:
@get '/': ->
@render 'index',
franks: ['miller', 'oz', 'sinatra', 'zappa']
@view index: ->
for name in @franks
a href: "http://en.wikipedia.org/wiki/Frank_#{name}", -> name
Basically, all the "magic" functions are attached to @ now, and sending variables to render functions is now done (by default) as an object parameter to the render function. Hooray for closures not being broken anymore. :D
The text was updated successfully, but these errors were encountered:
With Zappa version 3, the syntax for the get and view functions has changed. Double check my syntax, this is just a quick conversion, but I think it should look like this:
Basically, all the "magic" functions are attached to @ now, and sending variables to render functions is now done (by default) as an object parameter to the render function. Hooray for closures not being broken anymore. :D
The text was updated successfully, but these errors were encountered: