My project structure
index.js
views
------partials
--------login
--------footer
------pages
---------index
Now i am rendering index.ejs via
res.render('pages/index',{template:'../partials/login'})}
In index.ejs i have
<% include (template) %>
I get this error Error: Could not find include include file.
I have view cache set to false. These are my project dependencies
"dependencies": {
"ejs": "^2.5.7",
"express": "^4.16.3",
"express-generator": "^4.16.0"}
I tried giving abosulte path didn't work. Any suggestions?