I know {{for}} can loop through a collection. But can I loop based on the total number?
Say, if I have a TotalPage which is an integer, how can I create a paging list like:
{{for (Page=1; Page<=TotalPage; Page++;)}} // I made up this statement.
{{if Page=CurrentPage}}
<li class="selected">{{>Page}}</li>
{{else}}
<li>{{>Page}}</li>
{{/if}}
{{/for}}
Is that possible in jsRender?