Of course, you can transfer data via web ports for your client from the Node.js server and, as soon as on the client, just send it to the page.
If you use socket.io, for example, you can fire an event inside your server using the generated html, which will be received in the client code:
On server:
socket.emit('yourFiringEvent', variableContainingYourRawHtml);
On javascript client:
socket.on('yourFiringEvent', function(htmlResult) { $("#yourContainerId").html(htmlResult);
When your client code receives an event from the server, it will load the data into theContainingYourRawHtml variable inside the HtmlResult
If you do not use it, I recommend using the socket.io library to use websocket, it is quite simple and convenient:
http://socket.io/
source share