feat: have res.render return the compiled html

This commit is contained in:
Bobby Wibowo 2022-07-12 10:41:58 +07:00
parent 8f2a8400ea
commit e9736f436c
No known key found for this signature in database
GPG Key ID: 51C3A1E1E22D26CF

View File

@ -47,7 +47,8 @@ class NunjucksRenderer {
resolve(html)
})
}).then(html => {
return res.type('html').send(html)
res.type('html').send(html)
return html
})
}