Currently, I am running a node.js program that performs certain functions and generates an HTML table using res.write(). The output is displayed on the localhost port without being connected to an actual HTML page. As a result, I am facing the challenge of determining where to include my stylesheet.
function func(){
app.get('/', function (reqs, resp) {
resp.writeHead(200, {'Content-Type': 'text/html'});
resp.write("<table></table>");
resp.end();
});
}
var server = app.listen(8081, function () {
func();
});
This snippet showcases the relevant portion of my code. How can I incorporate the stylesheet into this setup effectively?