using ejs with node code example
Example 1: how to include in ejs
<%- include('./partials/nav.ejs') %>
Example 2: ejs tutorial
<ul>
<% users.forEach(function(user){ %>
<%- include('user/show', {user: user}); %>
<% }); %>
</ul>
<%- include('./partials/nav.ejs') %>
<ul>
<% users.forEach(function(user){ %>
<%- include('user/show', {user: user}); %>
<% }); %>
</ul>