EJS

Installation

npm install @jsreport/jsreport-ejs

Basics

jsreport EJS engine uses EJS library and therefore is fully compatible with it. You can do all the typical EJS data binding, conditions, loops or even use helpers.

<ul>
<% for(var i=0; i<students.length; i++) {%>
   <li><%= foo(students[i]) %></li>
<% } %>
</ul>

ejs engine works only with jsreport config trustUserCode:true


jsreport version