dynamic-template icon indicating copy to clipboard operation
dynamic-template copied to clipboard

Iterate arrays

Open drschwabe opened this issue 6 years ago • 1 comments

Tried rendering an array using this template....

    <ul>
      ${this._items.map((item) => `
        <li>${item}</li>
      `.trim()).join('')}
    </ul>

but this module's function renders it as:

 <ul>
      ${this._items.map((item) =&gt; `
        <li>${item}</li>
      `.trim()).join('')}
 </ul>

is there another technique to get this module to render an array?

drschwabe avatar Apr 08 '19 02:04 drschwabe

What are you trying to do? Where are you calling fillTemplate?

mikemaccana avatar May 21 '19 10:05 mikemaccana