aboutsummaryrefslogtreecommitdiffstats
path: root/testing/templates
diff options
context:
space:
mode:
authorLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2017-02-08 14:49:27 +0100
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2017-02-08 14:49:27 +0100
commit06bd6ef634de9a6569f15eb5043540e545371d68 (patch)
tree37b134a105fc7ac278776328b8ab5285b8d0af3f /testing/templates
parent38c31ee4bd2c0853fa5b82c1474af16cf5b33d88 (diff)
downloadaskama-06bd6ef634de9a6569f15eb5043540e545371d68.tar.gz
askama-06bd6ef634de9a6569f15eb5043540e545371d68.tar.bz2
askama-06bd6ef634de9a6569f15eb5043540e545371d68.zip
Implement generator support for whitespace handling markers
Diffstat (limited to '')
-rw-r--r--testing/templates/comparison.html54
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 %}