mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-15 20:06:31 +00:00
34b03285ad2eb5b2469302e43842419acddb46a5
This PR was merged into the master branch. Discussion ---------- Adding a section about the slice filter to doc/tags/for.rst This code example shows how to loop over a subset of values in order to implement one common use-case of "break" in PHP. I decided to use the "full" notation of slice rather than the sugared version (that example would just be "for user in users[:10]") Commits -------202641aAdding link to slice filter per Stof's suggestion8ebbaaaAdding a section about the slice filter
…
Twig, the flexible, fast, and secure template language for PHP
Twig is a template language for PHP, released under the new BSD license (code and documentation).
Twig uses a syntax similar to the Django and Jinja template languages which inspired the Twig runtime environment.
More Information
Read the documentation for more information.
Description
Languages
PHP
99.9%
