template7
template7 copied to clipboard
Feature {{@index + 1}}
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>
{{js "this.@index + 1"}}