From: Georg Brandl Date: Wed, 11 Apr 2007 13:56:21 +0000 (+0200) Subject: [svn] Add modulo division to the list of supported operators. X-Git-Tag: 2.0rc1~367 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=04b9efa676f6e5f01e1c1d0a7f04af27187ff76b;p=jinja2.git [svn] Add modulo division to the list of supported operators. --HG-- branch : trunk --- diff --git a/docs/src/designerdoc.txt b/docs/src/designerdoc.txt index a705e68..339c058 100644 --- a/docs/src/designerdoc.txt +++ b/docs/src/designerdoc.txt @@ -371,6 +371,8 @@ can use expressions. In expressions you can use any of the following operators: ``{{ 2 * 2 }}`` would return ``4``. ``**`` raise the left operand to the power of the right operand. ``{{ 2**3 }}`` would return ``8``. + ``%`` calculate the remainder of an integer division between the + left and right operand: ``{{ 11 % 7 }}`` is ``4``. ``in`` perform sequence membership test. ``{{ 1 in [1,2,3] }}`` would return true. ``is`` perform a test on the value. See the section about