diff options
author | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2017-02-13 22:00:35 +0100 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2017-02-13 22:00:35 +0100 |
commit | ca5bfc111616ac29eb18165d60bf309c2f18f419 (patch) | |
tree | f57e85c5ffc2b1e0856ed827583d9b7978e6bd9e /testing/templates/operators.html | |
parent | a6b4f305e948cdf327b45abe52b27a4d81013d5d (diff) | |
download | askama-ca5bfc111616ac29eb18165d60bf309c2f18f419.tar.gz askama-ca5bfc111616ac29eb18165d60bf309c2f18f419.tar.bz2 askama-ca5bfc111616ac29eb18165d60bf309c2f18f419.zip |
Implement support for mul, div, mod operators
Diffstat (limited to 'testing/templates/operators.html')
-rw-r--r-- | testing/templates/operators.html | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/testing/templates/operators.html b/testing/templates/operators.html index ea22546..020126b 100644 --- a/testing/templates/operators.html +++ b/testing/templates/operators.html @@ -46,3 +46,12 @@ {%- else -%} f {%- endif %} +{% if a * c > b -%} + mul +{%- endif %} +{% if c / c == a -%} + div +{%- endif %} +{% if a % c == b -%} + mod +{%- endif %} |