As a real beginner in EJS, I have two charts in my html page, so I want to use my partial twice:
<% include partials/spider-chart.ejs %>
This is the best workaround by just passing the view file name as a context while rendering the base ejs file.
/base.ejs:
<%- include(content) %>
/extra.ejs:
some content which is to be added in base ejs file
/controller.js:
res.render('base', { content: 'extra' })