Encapsulated loop function for LESS