Express layouts error - variable not defined
问题 I am using express-ejs-layouts and am seeing the following error in the console log: >> 5| <title><%= title %></title> title is not defined I do indeed have the following element defined in my layout.ejs file: <title><%= title %></title> I am populating this variable from one of my route files: router.get('/', function(req, res) { res.render('index', { title : 'Express' }); }); Any idea what I am missing? Thanks! 回答1: I figured this out. There was another variable (description) that was not