Skip to content

Commit

Permalink
dev in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
speier committed May 19, 2012
1 parent 52e70e0 commit c6eb4b7
Show file tree
Hide file tree
Showing 26 changed files with 2,964 additions and 64 deletions.
8 changes: 0 additions & 8 deletions examples/helloworld/app.js
Expand Up @@ -19,7 +19,6 @@ app.get('/', function(req, res) {
});

app.get('/admin', function(req, res) {
// get data/model and render mustache template (should be the same mechanish on server and client)
res.render('admin', {
title: 'Admin'
});
Expand All @@ -29,10 +28,3 @@ app.get('/user/:id?', function(req, res) {
console.log(req);
res.send('user id ' + req.params.id);
});

function getData(req) {
// get data/model abstraction layer/method dummy for future
return {
title: 'App'
};
}
13 changes: 13 additions & 0 deletions examples/helloworld/package.json
@@ -0,0 +1,13 @@
{
"name": "application-name",
"version": "0.0.1",
"dependencies": {
"torpedo": "~0.1.0",
"express": "~2.5.9",
"consolidate": "~0.3.0",
"hogan.js": "~2.0.0"
},
"scripts": {
"start": "node ./bin/server"
}
}
Binary file not shown.
175 changes: 175 additions & 0 deletions examples/helloworld/public/font/fontawesome-webfont.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c6eb4b7

Please sign in to comment.