Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updated zappa example.

  • Loading branch information...
commit fae236656b1fe97934c946d1c2510ee9b29b1b54 1 parent bbcdc31
@mauricemach authored
Showing with 12 additions and 9 deletions.
  1. +12 −9 examples/zappa.coffee
View
21 examples/zappa.coffee
@@ -1,10 +1,13 @@
-get '/': ->
- @people = ['bob', 'alice', 'sinatra', 'zappa']
- render 'default'
+require('zappa') ->
+ enable 'default layout'
+
+ get '/': ->
+ @franks = ['miller', 'oz', 'sinatra', 'zappa']
+ render 'index'
-view ->
- @title = 'Zappa example'
- h1 @title
- ul ->
- for p in @people
- li p
+ view index: ->
+ @title = 'Zappa example'
+ h1 @title
+ ul ->
+ for f in @franks
+ li f
Please sign in to comment.
Something went wrong with that request. Please try again.