1EJS is a simple templating language that lets you generate HTML markup with
2plain JavaScript. No religiousness about how to organize things.
3No reinvention of iteration and control-flow. It's just plain JavaScript.
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>