1<div id="output"></div>
2<script src="ejs.min.js"></script>
3<script>
4 let people = ['geddy', 'neil', 'alex'],
5 html = ejs.render('<%= people.join(", "); %>', {people: people});
6 // With jQuery:
7 $('#output').html(html);
8 // Vanilla JS:
9 document.getElementById('output').innerHTML = html;
10</script>