I've set up an EJS partial under a path views/partials/ejspartial.ejs which I am trying to access in an ejs file with the path views/ejsfile.ejs. This is the same views directory.
In the ejsfile.ejs, I've added the following line of code: <% include ./partials/ejspartial %>
When I load the ejsfile page, I get the following error:
SyntaxError: Unexpected token '/' in <path>/views/ejsfile while compiling ejs
I've tried swapping in the <%- tag and removing the ./ from the include statement, but the same error occurs.
<path>/views/ejsfile.ejsor look for some odd/includeportion. It works as intended. I'm just trying to reference it in the ejs partial instead of directly into the view.views/ejsfile.ejs?<%- include('partials/ejspartial') %>