Closed KirkM9 closed 3 years ago
I have some questions are you getting any ejs rendering errors is template.ejs in the same folder as this file(is the path correct)
<%= data %>
<div class= "data">
<%- include ('template.ejs', { data }); %>
</div>
try doing this and see are you getting any value for data if yes try printing the value in the template file
<%# template.ejs %>
<%= data %>
Resolved it myself. Was an issue with my express server
I am using ejs, and the data through my ejs template won't load, despite it showing it loads in my node server. This is how I am attempting to bring it in on my index.ejs home page:
and in my backend (index.js) , this is how I am rendering the data on my home page
Is there anything wrong with this approach?