ejs include with data code example
Example 1: ejs partial pass value
<%-include("partials/profile", {fullName:fullName}) %>
Example 2: express view engine', 'ejs
app.set("view engine", "ejs");
app.set("views", path.join(__dirname, "views"));
<%-include("partials/profile", {fullName:fullName}) %>
app.set("view engine", "ejs");
app.set("views", path.join(__dirname, "views"));