How does the {{}} loop of art-template support conditional indexing?

  node.js, question

For example
{{each data as value index}}

<li><a href="#">{{index}}</a></li>

Pagination column, one page for every 10 pages, and only 5 pages at most.
What should I do with {{}} grammar?

This requirement of yours should be controlled at the back end. each at the front end is only responsible for the loop. The front end supports if judgment.
{{if index 1}}{{/if}}