Thursday, 20 April 2017

Use multiple jade template files in Express

I'm trying to use multiple jade template files in my website. I use Express framework but I am fairly new to this. I have my front-end routing done by Angular and that works fine, and when I refresh on the index page, it loads up nicely but when I refresh on a different page, this does not work. Can I render multiple jade pages? Or do I need to make routes for each page?

This is my routing in Express that takes care of the index.jade file

router.get('/', function(req, res) 
   { res.render('index'); 
});



via Larsmanson

No comments:

Post a Comment