Moving from express #149
-
While I was converting an express app to hyper express I got an error app.engine('.html', require('ejs').renderFile);
app.set('view engine', 'html'); in hyper express? |
Beta Was this translation helpful? Give feedback.
Answered by
kartikk221
Jan 31, 2023
Replies: 1 comment
-
HyperExpress is not 100% compatible with Express.js and at the moment engines are not supported by HyperExpress. You can however use middlewares to inject your own custom methods or use a middleware based solution for rendering content. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
kartikk221
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
HyperExpress is not 100% compatible with Express.js and at the moment engines are not supported by HyperExpress. You can however use middlewares to inject your own custom methods or use a middleware based solution for rendering content.