Rendering engine without view files
- Dominant language
- JavaScript
- Stars
- 69.5k
- Forks
- 25k
- Avg merge
- 4d 20h
- Merged PRs (30d)
- 9
Description
Hello! I want to write an express rendering engine which uses views retrieved from a database, not the file system. I've checked this repo's issue history and done a lot of googling but I've found nothing...
It seems express _requires_ a view file to exist on disk before passing the req/res to a rendering engine. Is there a way to prevent this behaviour?
Ideally, when I invoke `res.render(name)`my rendering engine is called with `(name, options, callback)` without `/[name].html` necessarily existing on disk.
I could overwrite express' `res.render` with my own renderer. However in order to handle errors properly it seems I'd have to pass in `next` each time I called `res.render`. That seems repetitive.
Contributor guide
Assessment
This issue has not been assessed yet.