Is there a way to add a for loop when using spark view engine ? I'm trying to add pagination support to my view and trying to loop through and add list entries listed below:
<li><a href="#">1</a></li>
<li><a href="#">2</a></li>
Unfortunately all I can find are examples to use foreach. Is there way to do this in spark ?
No direct way, but several indirect methods are listed in this page:
https://groups.google.com/forum/#!searchin/spark-dev/for$20loop/spark-dev/vfUUg2KUFk4/yqJ4iRUNYC4J