Reputation: 45
I created a button in ejs file which active a function from a js file. The function:
function signUp(){
$(`.container`).empty()
$(`.container`).append("<%- include ('signUp') %>")
}
I have a file in the same main ejs folder file, which is called "signUp.ejs" that includes a form for signing up .
My problem is that my page just shows :
<%- include ('signUp') %>
as an html text , and is not showing the content of the ejs file.
Upvotes: 0
Views: 43
Reputation: 16354
You should use <% include includes/signUp %>
If the location of the singUp.ejs is different set it appropriately.
Upvotes: 1