I\'m running a simple server
var express = require(\'express\')
var app = express()
app.set(\'view engine\', \'ejs\');
app.use(express.static(\'public\'))
Try any of these:
<% include header.ejs %>
<% include header %>
<%- include('header.ejs'); -%>
<%- include('./header.ejs'); -%>
Include paths are relative, you will need to update your paths to include the "partials" subfolder e.g.
<% include partials/header %>
<h1>welcome</h1>
<% include partials/footer %>
See the docs
Try this :
<% include header %>
<h1>welcome</h1>
<% include footer%>