A
A
Alexander Fadeev2015-08-28 19:53:18
Node.js
Alexander Fadeev, 2015-08-28 19:53:18

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');
...

unfortunately it doesn't work.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Fadeev, 2015-08-28
@An_Tux

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 question

Ask a Question

731 491 924 answers to any question