From: Fabien Potencier Date: Mon, 25 Mar 2013 07:42:48 +0000 (+0100) Subject: merged branch beryllium/patch-1 (PR #1032) X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=34b03285ad2eb5b2469302e43842419acddb46a5;p=konrad%2Ftwig.git merged branch beryllium/patch-1 (PR #1032) 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 ------- 202641a Adding link to slice filter per Stof's suggestion 8ebbaaa Adding a section about the slice filter --- 34b03285ad2eb5b2469302e43842419acddb46a5