Express JS:
1a. Variables in ejs files (if using html in them) look like:
<%= title %>
1b. Defining such a variable in your app.js:
app.get(’/’, (req, res, next) => {
let awsome = ”awsome”
res.render(’index’, {title: awsome});
});
2. Variables in ejs layout files (if using html in them) look like:
<%- body %>