## Loop Directives Lightview has a single looping directive, `l-for`, that can be configured to handle objects and arrays and loop over keys, values, or entries with default variable names or variable names you provide. The iterator directive takes the form `l-for:?accessor:?itemVariable:?indexVariable:?arrayVariable="${data}"`. The default iterator accessor is `each`. You can also use `entries`, `keys`, and `values`. The default iteration variables are `item`, `index`, and `array`. Try pasting this code into the <body>: ```html

``` Try pasting this code into the <body>: ```html

${child} has index ${i} in ${JSON.stringify(children)}

```