Try to do it like this:
#set($start = 0)
#set($end = 4)
#set($range = [$start..$end])
#foreach($i in $range)
doSomething
#end
The code has not been tested, but it should work like this.
Try to do it like this:
#set($start = 0)
#set($end = 4)
#set($range = [$start..$end])
#foreach($i in $range)
doSomething
#end
The code has not been tested, but it should work like this.