Complete the code to set EJS as the template engine in Express.
app.set('view engine', '[1]');
Express uses app.set('view engine', 'ejs') to specify EJS as the template engine.
Complete the code to render the 'index' template with Express.
res.[1]('index');
Use res.render('index') to render a template named 'index'.
Fix the error in the code to pass data to the template.
res.render('profile', [1]);
Data passed to templates must be an object, like {name: 'Alice'}.
Fill both blanks to correctly set the views folder and render a template.
app.set('[1]', path.join(__dirname, '[2]')); res.render('home');
Express looks for templates in the folder set by app.set('views', ...). Commonly, this is set to a folder like 'templates'.
Fill all three blanks to pass user data and render the 'dashboard' template.
const user = {name: '[1]', age: [2];
res.[3]('dashboard', {user});Pass user data as an object and use res.render to show the 'dashboard' template.
