Permalink
Browse files

Updated examples to mention CoffeeCup and zappajs (so that they can b…

…e used as templates).
  • Loading branch information...
1 parent 401f072 commit 382aa9ffb15efb7f69f9a6376675f468ed263adb @shimaore shimaore committed Apr 18, 2012
View
@@ -1,4 +1,4 @@
-require('./zappa') ->
+require('./zappajs') ->
@enable 'serve jquery'
@get '/': ->
@@ -40,4 +40,4 @@ require('./zappa') ->
div id: 'panel'
form ->
input id: 'box'
- button 'Send'
+ button 'Send'
@@ -1,7 +1,7 @@
# Zappa equivalent of the default app generated by Express.
# See `express.coffee` for comparison.
-{@app} = require('./zappa') ->
+{@app} = require('./zappajs') ->
@configure =>
@set 'view engine': 'jade'
@use 'bodyParser', 'methodOverride', @app.router, 'static'
@@ -11,4 +11,4 @@
production: => @use 'errorHandler'
@get '/': ->
- @render index: {title: 'zappa'}
+ @render index: {title: 'zappa'}
View
@@ -1,2 +1,2 @@
-require('./zappa') ->
- @get '/': 'hi'
+require('./zappajs') ->
+ @get '/': 'hi'
View
@@ -1,4 +1,4 @@
-require('./zappa')(function(c){
+require('./zappajs')(function(c){
c.use('static', 'bodyParser')
c.get('/', function(c){
@@ -8,4 +8,4 @@ require('./zappa')(function(c){
c.view({index: function(){
h1(this.foo)
}})
-})
+})
@@ -1,4 +1,4 @@
-require('./zappa') ->
+require('./zappajs') ->
@enable 'default layout'
@get '/': ->
@@ -41,4 +41,4 @@ require('./zappa') ->
div class: 'staff', ->
h2 'Staff'
p 'Disk: 10 GB'
- p 'RAM: 100 GB'
+ p 'RAM: 100 GB'
View
@@ -1,4 +1,4 @@
-require('./zappa') ->
+require('./zappajs') ->
@get
'/': ->
@render 'index', foo: 'bar'
@@ -10,16 +10,16 @@ require('./zappa') ->
@render 'index.jade', foo: 'bar'
@view index: ->
- h2 'CoffeeKup inline template'
+ h2 'CoffeeCup inline template'
p @foo
@view layout: ->
doctype 5
html ->
head ->
- title 'CoffeeKup inline layout'
+ title 'CoffeeCup inline layout'
body ->
- h1 'CoffeeKup inline layout'
+ h1 'CoffeeCup inline layout'
@body
@view 'index.eco': '''
@@ -52,4 +52,4 @@ require('./zappa') ->
body
h1 Jade inline layout
!= body
- '''
+ '''
@@ -1,3 +1,3 @@
-h2 'CoffeeKup file template'
+h2 'CoffeeCup file template'
p @foo if @foo
-p @title if @title
+p @title if @title
@@ -1,7 +1,7 @@
doctype 5
html ->
head ->
- title 'CoffeeKup file layout'
+ title 'CoffeeCup file layout'
body ->
- h1 'CoffeeKup file layout'
- @body
+ h1 'CoffeeCup file layout'
+ @body
File renamed without changes.

0 comments on commit 382aa9f

Please sign in to comment.