How to: ExpressJS: how to output pretty html
How to: ExpressJS: how to output pretty html
ExpressJS: how to output pretty html
I’ve noticed that while using ExpressJS for Node.js, it outputs the html code without any newline characters or tabs. It’s not very pretty, although it could technically be more efficient for downloading.
How could I get it to print nice formatted html?
Answer: ExpressJS: how to output pretty html
In express 4.x, add this to your app.js:
if (app.get('env')…
View On WordPress














