output <li>s from a loop