Looks like there is no register
method in express 4. I'm getting this error:
TypeError: Object function (req, res, next) {
app.handle(req, res, next);
} has no method 'register'
What is the right way to use doT engine in express 4?
You can follow the express way: http://expressjs.com/advanced/developing-template-engines.html
Or you can manually render with dot on your routes: https://github.com/olado/doT/blob/master/examples/express/lib/app.js
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.