use js object in ejs file code example Example: how to include in ejs <%- include('./partials/nav.ejs') %>