template7 icon indicating copy to clipboard operation
template7 copied to clipboard

Feature {{@index + 1}}

Open Apache02 opened this issue 5 years ago • 1 comments

How to do something like that?

{{#each people}}
  <li>{{@index + 1}}. {{this}}</li>
{{/each}}

+

{ people : ['John Doe', 'Mark Johnson'] }

=

<li>1. John Doe</li>
<li>2. Mark Johnson</li>

Apache02 avatar Jul 01 '20 16:07 Apache02

{{js "this.@index + 1"}}

shastox avatar Aug 07 '20 10:08 shastox