I am using EJS for the first time in my nodejs app and i need to use some template string inside EJS but i keep getting an error Below is a code snippet i was working on
<% const msg = `Hi i am interested in your product ${window.location.href}` %>
In the above code i need to attach the current url to the string the assign it to the variable msg please help on how i can achieve this.
I have also tried using <%- %> delimiters. but it is still not working