1.

How Do I Render Plain Html?

Answer»

There’s no need to “render” HTML with the res.render() FUNCTION. If you have a specific file, USE the res.sendFile() function. If you are SERVING MANY assets from a directory, use the express.static() middleware function.

There’s no need to “render” HTML with the res.render() function. If you have a specific file, use the res.sendFile() function. If you are serving many assets from a directory, use the express.static() middleware function.



Discussion

No Comment Found