So I upgraded to the latest version of Express, and to my dismay, they dropped support by the register() method in favor of the engine() method. Furthermore, they dropped partial view rendering (among others), which means one needs another plugin to restore the old functionality.
My solution:
app.engine('.html',
require('ejs-locals')
);
No comments:
Post a Comment