I'm using Node.js+Express, and I've come across a case where I need to send some HTML, render a view, then send some more HTML in the one response.
The flow would be:
res.send('some html');
res.render('module.html', {});
res.send('more html');
Now I know that res.render supports a callback, so I could do:
res.render('module.html', {}, function () {
res.send('more html');
});
But res.send() doesn't appear to. Is there a way to achieve this?
