Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jaisor committed Jul 6, 2013
0 parents commit 18ff170
Show file tree
Hide file tree
Showing 14 changed files with 10,029 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
@@ -0,0 +1,2 @@
.DS_Store
node_modules
18 changes: 18 additions & 0 deletions app.js
@@ -0,0 +1,18 @@
var express = require('express'),
engines = require('consolidate'),
app = express();

app.set('views', __dirname + '/views');
app.set('view options', {layout: false});
app.set('view engine', 'html');
app.use("/assets", express.static(__dirname + '/assets'));
app.engine('html', engines.hogan);

app.get('/', function(req, res){
res.render('index', {
what: 'World'
});
});

app.listen(3000);
console.log('Express server started on port %s', 3000);

0 comments on commit 18ff170

Please sign in to comment.