Loops in one single template