Using <%- include("header") %> in a template fails to resolve and load the partial template file and return error:
ejs:8
6| </head>
7| <body>
>> 8| <%- include('header') %>
9| Hobbies of <%=data.name%>
10| </body>
11| </html>
Could not find the include file "header"
for debugging purposes, I placed all files in the root directory, rather than the conventional ./views and ./views/partials folders.
Using <%- include("header") %> in a template fails to resolve and load the partial template file and return error:
for debugging purposes, I placed all files in the root directory, rather than the conventional ./views and ./views/partials folders.
./app.ts
./index.ejs:
./header.ejs: