marcbachmann / node-html-pdf

This repo isn't maintained anymore as phantomjs got dreprecated a long time ago. Please migrate to headless chrome/puppeteer.
MIT License
3.56k stars 543 forks source link

Keys from data in each do not work #579

Open AlexoName opened 4 years ago

AlexoName commented 4 years ago

Hey.

I am doing an array traverse, I want to use other variables inside the generation, but they are not displayed. Can I fix it somehow?

{{#each fields}}
<div class="page">
  <h3 class="pageSubtitle">{{$ln.field}}</h3>
  <h3 class="pageSubtitle">{{this.count}}</h3>
</div>
{{/each}}

In this case, $ln.field is not displayed.