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
- Host: GitHub
- URL: https://github.com/codegasms/ejs-fetch-example
- Owner: codegasms
- License: mit
- Created: 2024-03-04T20:11:01.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-22T20:17:03.000Z (about 2 years ago)
- Last Synced: 2025-03-22T01:37:29.197Z (about 1 year ago)
- Language: JavaScript
- Size: 30.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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