简体   繁体   中英

How to use doT template engine with express 4 in node.js?

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?

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM