How would I go about writing a while loop, doing the equiv of
while (x--) {
<li> foo {{x}} </li>
}
with a "microsyntax" similar to *ngFor
but for looping with an incrementer or decrementer rather than over an object. So if component has x = 5
. And I want
<li> foo 5 </li>
<li> foo 4 </li>
<li> foo 3 </li>
<li> foo 2 </li>
<li> foo 1 </li>
Or the like. Template Toolkit does this with WHILE
. I'm looking for that kind of functionality. So does jade/Pugs.