updated app

This commit is contained in:
2012-05-30 23:00:06 -04:00
parent 6a753904b7
commit da6ad88d48
5545 changed files with 1101709 additions and 60 deletions

10
node_modules/derby-examples/hello/hello.coffee generated vendored Normal file
View File

@@ -0,0 +1,10 @@
{view, get} = require('derby').createApp module
# Templates define both HTML and model <- -> view bindings
view.make 'Body', 'Holler: <input value="{message}"><h2>{message}</h2>'
# Routes render on client as well as server
get '/', (page, model) ->
# Subscribe specifies the data to sync
model.subscribe 'message', ->
page.render()