display data node.js on ejs file code example
Example 1: add one file to another in ejs
<%- include('partials/messages'); %>
Example 2: using server passed values and client js together in ejs
<% var test = 101; %> // variable created by ejs
<script>
var getTest = <%= test %>; //var test is now assigned to getTest which will only work on browsers
console.log(getTest); // successfully prints 101 on browser
</script>