Created
March 9, 2015 20:18
-
-
Save enjalot/c6b9dc0d7ef61c67721d to your computer and use it in GitHub Desktop.
This file contains 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
.idea | |
node_modules | |
.DS_Store |
This file contains 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
<Body:> | |
<h1>Hello, world!</h1> | |
<view is="partial"></view> | |
<partial:> | |
hiiii |
This file contains 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
var derby = require('derby'); | |
var app = module.exports = derby.createApp('mybug', __filename); | |
app.use(require('derby-debug')); | |
app.loadViews(__dirname); | |
app.get('/', function(page, model) { | |
model.subscribe("test",function() { | |
page.render(); | |
}) | |
}); |
This file contains 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
{ | |
"name": "mybug", | |
"version": "1.0.0", | |
"description": "Mini derby-app", | |
"main": "index.js", | |
"scripts": { | |
"start": "node server.js" | |
}, | |
"keywords": [ | |
"derby", "mini" | |
], | |
"dependencies": { | |
"derby": "0.6.0-alpha35", | |
"derby-starter": "^0.2.6", | |
"derby-debug": "^0.1.0" | |
}, | |
"author": "", | |
"license": "MIT" | |
} |
This file contains 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
require('derby-starter').run(__dirname, {port: 3000}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment