minor #3024 doc(filter): add example of `filter` without `for` use (Kocal)
minor #3024 doc(filter): add example of `filter` without `for` use (Kocal)

This PR was submitted for the 2.x branch but it was merged into the 1.x branch instead (closes #3024).

Discussion
----------

doc(filter): add example of `filter` without `for` use

First, thanks for #2996! :)

This PR add an example of `filter` usage without using a `for` loop, to prevend some misinterpretation to people.

At first read, I thought `filter` was only usable with `for` loop, but nope. In fact it iterates on the result produced by `filter`.

Commits
-------

847276a6 doc(filter): add example of `filter` without `for` use

twigphp/Twig,nicolas-grekas/Twig,twigphp/Twig,nicolas-grekas/Twig,nicolas-grekas/Twig,nicolas-grekas/Twig,nicolas-grekas/Twig,twigphp/Twig