ejs include partial code example
Example 1: include partials ejs
<%- include('partials/header.ejs') %>
Example 2: include header and footer in ejs
<%- include('./partials/nav.ejs') %>
Example 3: express view engine', 'ejs
app.set("view engine", "ejs");
app.set("views", path.join(__dirname, "views"));
Example 4: ejs include dynamic partial
<%- include(page) %>
// OR //
<%- include('partials/'+page) %>