diff options
author | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2017-02-08 14:49:27 +0100 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2017-02-08 14:49:27 +0100 |
commit | 06bd6ef634de9a6569f15eb5043540e545371d68 (patch) | |
tree | 37b134a105fc7ac278776328b8ab5285b8d0af3f /testing | |
parent | 38c31ee4bd2c0853fa5b82c1474af16cf5b33d88 (diff) | |
download | askama-06bd6ef634de9a6569f15eb5043540e545371d68.tar.gz askama-06bd6ef634de9a6569f15eb5043540e545371d68.tar.bz2 askama-06bd6ef634de9a6569f15eb5043540e545371d68.zip |
Implement generator support for whitespace handling markers
Diffstat (limited to 'testing')
-rw-r--r-- | testing/templates/comparison.html | 54 |
1 files changed, 48 insertions, 6 deletions
diff --git a/testing/templates/comparison.html b/testing/templates/comparison.html index 87aaec3..71a4a7b 100644 --- a/testing/templates/comparison.html +++ b/testing/templates/comparison.html @@ -1,6 +1,48 @@ -{% if a == b %}t{% endif %}{% if a == c %}t{% else %}f{% endif %} -{% if a != c %}t{% endif %}{% if a != b %}t{% else %}f{% endif %} -{% if c >= b %}t{% endif %}{% if b >= c %}t{% else %}f{% endif %} -{% if c > b %}t{% endif %}{% if a > c %}t{% else %}f{% endif %} -{% if a <= b %}t{% endif %}{% if c <= b %}t{% else %}f{% endif %} -{% if a < c %}t{% endif %}{% if a < b %}t{% else %}f{% endif %} +{% if a == b -%} + t +{%- endif -%} +{% if a == c -%} + t +{%- else -%} + f +{%- endif %} +{% if a != c -%} + t +{%- endif %} +{%- if a != b -%} + t +{%- else -%} + f +{%- endif %} +{% if c >= b -%} + t +{%- endif -%} +{% if b >= c -%} + t +{%- else -%} + f +{%- endif %} +{% if c > b -%} + t +{%- endif -%} +{% if a > c -%} + t +{%- else -%} + f +{%- endif %} +{% if a <= b %} + t +{% endif -%} +{% if c <= b -%} + t +{%- else -%} + f +{%- endif %} +{% if a < c -%} + t +{%- endif %} +{%- if a < b -%} + t +{%- else -%} + f +{%- endif %} |