include header ejs code example
Example 1: header ejs
<%- include('header'); -%>
<h1>
Title
</h1>
<p>
My page
</p>
<%- include('footer'); -%>
Example 2: ejs
npm install ejs //install ejs in cmd
<%- include('header'); -%>
<h1>
Title
</h1>
<p>
My page
</p>
<%- include('footer'); -%>
npm install ejs //install ejs in cmd