How to change code Handlebars to JSrender
-
{{#each $pdf.pages}}
{{#if 0}}
<div style="page-break-before: always;"></div>
{{/if}}
<main class="main">
<header class="header">
{{#with (lookup ../$pdf.pages 0)}}
{{group}}
{{/with}}
</header>
<footer class="footer">
<table style="width: 100%;">
<tr><td style="width: 50%; font face:arial; font-size:12px;">Print Date {{getDate}}</td><td style="text-align: right; width: 50%; font face:arial; font-size:12px" >Page {{getPageNumber 0}} of {{getTotalPages ../$pdf.pages}}</td></tr>
</table>
</footer>
</main>
{{/each}}
-
There are some jsrender examples referenced in the docs
https://jsreport.net/learn/pdf-utilsThese two at this moment
https://playground.jsreport.net/w/admin/LHIiC3D8
https://playground.jsreport.net/w/admin/zjSOfVWn
-
I'm trying to access these examples that were referenced above but is returned 502 code.
-
there was an incident in the server that handles the playground, it should be fixed now. sorry for the inconveniences