I am having a problem with an EJS layout file in Express 3. Express simply cannot find the layout for rendering. It just skips layout.ejs completely, which means the output skips all stylesheets, etc.
res.render('login', { user: req.user });
and configuration parts
app.set('views', __dirname + '/views'); app.set('view engine', 'ejs');
and in layout.ejs I added a body tag,
<%- body %>
I tested Jade before and it worked just fine, so the problem is just EJS.
Thanks in advance.
source share