support while loop syntax for Cheetah templates