generate url for homepage

This commit is contained in:
Ali Asaria 2011-10-10 21:38:47 -04:00
parent 2dd1272958
commit f76e142f80
2 changed files with 5 additions and 2 deletions

View file

@ -36,8 +36,11 @@ app.configure( function(){
});
app.get('/', function(req, res) {
console.log(req.header('host'));
url = req.header('host');
res.render('home.jade', {
layout: false
layout: false,
locals: {url: url}
});
});