Code: Select all
[list]
[*]
[/list]
Code: Select all
app.set('view engine', 'ejs');
app.get('/', (req, res) => {
res.render('index', {
title: 'Foobar',
message: queryDatabase(),
users: [{ name: 'Foo' }, { name: 'Bar' }]
});
});
Code: Select all
SyntaxError: Unexpected token ')' in C:\((path))\node\views\index.ejs while compiling ejs
Mobile version