Java code --
List<String> table = Lists.newArrayList();
........
Template Code --
{{#each table}}
<td height="28" width="27"><h1> {{table.length}}</h1></td>
<td height="28" width="27"><h1> {{table.size}}</h1></td>
<td height="28" width="27"><h1> {{table.count}}</h1></td>
<td height="28" width="27"><h1> {{../../table.length}}</h1></td>
<td height="28" width="27"><h1> {{../table.length}}</h1></td>
{{/each}}
I am trying to get the length of the list in the handlebar template. But all those lines above I tried don't work! I am wondering where I do wrongly. What's the right way to get the length of iterator in handlebar java?
Thanks in advance!