whitespaces when adding partial template using EJS
I am using SailsJS with EJS engine. When I add partials using <% include partials/template.ejs %> or <% partial('partials/template.ejs') in the layout file, I get whitespaces before the compiled HTML code (template.ejs). Note that when I copy paste the template.ejs content in the layout (not using include/partials) the whitespaces are gone. See images below: 1st part: code. 2nd part: chrome DOM. 3rd part: whitespace element inspection (DOM properties) I have faced the same problem. What I did was very simple. Go to ejs module index.js file. Find partial function. Find this part of code: var