Answer the question
In order to leave comments, you need to log in
Handlebars template not rendering?
Good afternoon!
It stopped, it stopped (before that it worked) the handlebars template for express is being rendered.
I rechecked all the settings, but it still loads the default template (main).
Here is the code:
var express = require('express');
var app = express();
var exphbs = require('express-handlebars');
app.engine('handlebars', exphbs({defaultLayout: 'main'}));
app.set('view engine', 'handlebars');
app.get('/auth', function (req, res) {
res.render('auth');
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question