Open
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.