Answer the question
In order to leave comments, you need to log in
How to use ejs-locals with express 4?
Good afternoon, tell me how to connect ejs-locals in express 4?
I tried this build:
var engine = require('ejs-locals');
...
app.engine('ejs', engine);
app.set('views', path.join(__dirname, 'views'));
app.set('view engine', 'ejs-locals');
...
Answer the question
In order to leave comments, you need to log in
I found the answer myself, it turns out there is another module with approximately the same functionality: ejs-mate
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question