An alternative way to render data in ejs.
The standard way is to pass variables in the context while calling res.render.
But, if you wish to build you backend API, which is concerned with responding with JSON only, then you might need this!
An example/practice repo
- use
awaitinfront ofincludetags for ejs