Express.js how to make html render on client side with response.render?
I have basic express js application with following route: router.get('/', function(req, res){ res.render('login'); }); It works fine - after logging into main page on my localhost, html from login.pug is nicely rendered on client side. However when my app runs, sometimes I want to render another pug file, when there already is html rendered on client side: app.get('/dashboard', function(req, res){ res.render('dashboard', {user: req.query.login}); }); But when get request is send on 'dashboard' path, nothing happens. As I understand, this happens because res.render just parses pug file into