projects
/
jinja2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
72ae448
)
[svn] Add modulo division to the list of supported operators.
author
Georg Brandl
<georg@python.org>
Wed, 11 Apr 2007 13:56:21 +0000
(15:56 +0200)
committer
Georg Brandl
<georg@python.org>
Wed, 11 Apr 2007 13:56:21 +0000
(15:56 +0200)
--HG--
branch : trunk
docs/src/designerdoc.txt
patch
|
blob
|
history
diff --git
a/docs/src/designerdoc.txt
b/docs/src/designerdoc.txt
index a705e688eb5babc1c9c4a14c07b7c441e9553efa..339c05843698b213b3df649345f5e880f0c6840d 100644
(file)
--- 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