This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
express = require('express') | |
app = module.exports = express.createServer() | |
app.configure -> | |
app.set 'views', __dirname + '/views' | |
app.set 'view engine', 'jade' | |
app.use express.bodyParser() | |
app.use express.methodOverride() | |
app.use app.router |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Todos = SC.Application.create() | |
Todos.Todo = SC.Object.extend | |
title: null | |
isDone: false | |
Todos.todosController = SC.ArrayProxy.create | |
content: [] | |
createTodo: (title) -> | |
todo = Todos.Todo.create { title: title } |
NewerOlder