Skip to main content
about the index.jade it should have a output keyword in perticular tag
Source Link

It could be that you're not sending any data to the index file. I would try something like this..

 exports.index = function(req, res){ console.log('welcome admin'); res.render('index', { output: 'Welcome Admin' }); } 

And then in your app.js file you want to have

 app.get('/', routes.index); 

and then in your index.jade file should have the tag for output key.so that whatever the value is given to output key is printed in the template.

It could be that you're not sending any data to the index file. I would try something like this..

 exports.index = function(req, res){ console.log('welcome admin'); res.render('index', { output: 'Welcome Admin' }); } 

And then in your app.js file you want to have

 app.get('/', routes.index); 

It could be that you're not sending any data to the index file. I would try something like this..

 exports.index = function(req, res){ console.log('welcome admin'); res.render('index', { output: 'Welcome Admin' }); } 

And then in your app.js file you want to have

 app.get('/', routes.index); 

and then in your index.jade file should have the tag for output key.so that whatever the value is given to output key is printed in the template.

Source Link

It could be that you're not sending any data to the index file. I would try something like this..

 exports.index = function(req, res){ console.log('welcome admin'); res.render('index', { output: 'Welcome Admin' }); } 

And then in your app.js file you want to have

 app.get('/', routes.index);