An open API service indexing awesome lists of open source software.

https://github.com/codegasms/ejs-fetch-example

An example/practice repo
https://github.com/codegasms/ejs-fetch-example

Last synced: 2 months ago
JSON representation

An example/practice repo

Awesome Lists containing this project

README

          

# ejs-fetch-example

An alternative way to render data in ejs.
The [standard way](https://github.com/expressjs/express/tree/master/examples/ejs) 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

## Tips

- use `await` infront of `include` tags for ejs