After a few days of searching and trial and error i'm still unable to get this to work at all without crashing.
What i'm trying to achieve is changing what text will be displayed in a H3 tag in an .ejs file.
The reason for this is because the system we're building is using partial of another file so rather than creating more files only this tag has to change it's text.
Section in Question:
<%if (window.location.href === '/newWizard') { %>
<h3><strong>Step of a Wizard </strong> - Some Text</h3>
<% }else { %>
<h3>Same Text</h3>
<% } %>
this file is referenced by <%- partial %> and that file is referenced one step back by <%- include %>.
We're building this software off a Node.js and Kendo Grid design.
Any help with this would be greatly appreciated, i'm going to continue research and work on it, will update this if i manage to have it to work properly.