[htmltmpl] Numeric loops
Brought to you by:
samtregar
From: Dan H. <dan...@re...> - 2007-04-30 00:10:59
|
Hi all Is there a way to loop from a lower integer to an higher one? For example, say an article has a rating of 4. I'd like to loop from 1 to 4 and print a star at each iteration. The only way I can see of doing this is create an array ref in the perl coder and pass that to the template, which seems a lot of pointless effort Regards Dan |