ejs node express example
Example 1: express view engine', 'ejs
app.set("view engine", "ejs");
app.set("views", path.join(__dirname, "views"));
Example 2: add one file to another in ejs
<%- include('partials/messages'); %>
app.set("view engine", "ejs");
app.set("views", path.join(__dirname, "views"));
<%- include('partials/messages'); %>