dynamic-template
dynamic-template copied to clipboard
Iterate arrays
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) => `
<li>${item}</li>
`.trim()).join('')}
</ul>
is there another technique to get this module to render an array?
What are you trying to do? Where are you calling fillTemplate?