Hey I have a website run with Express.js and Handlebars that has a navbar and sidebar that stays the same for all the pages. When I route it only changes the page container which is {{{body}}}
.
Is there a way I can just load the content of the routes without the page actually refreshing and reloading the nav and sidebar?
I'm currently using this for routing.
router.get('/', checkAuthentication, function(req, res){
res.render('index');
});
Any help would be nice as I'm quite new with node.
I want only the container to load not the whole url/page