Closed jimfilippou closed 6 years ago
You would look for a different view engine NPM package that would interpret the EJS views:
https://www.npmjs.com/package/ejs
In the Express code you'd wire up the EJS view engine instead of Pug. Change:
app.set("view engine", "pug");
to:
app.set("view engine", "ejs");
Yes but every file is ".pug", is there any way to convert pug to ejs?
You could look into converters or do this yourself. That's outside of the scope of this repo.
Thanks @welkie!
How to convert everything from pug to ejs?