fabpot/Twig — Issue #636: Feature request for the "for" loop
Author: Maxwell2022
Created: 2012-02-15 22:03:53+00:00
State: open

This is a feature request that I think is really missing in Twig.

As a frontend developer I'd like to be able to specify the starting index of the loop, the step of the loop and the number of iteration of the loop.

ie.
```php
{% for product in products with{start:5, step:2, loop:3} %}
```

This would return:

```php
products[4]
products[6]
products[8]
```

it can be very, very useful when you want to display list into several columns.