aboutsummaryrefslogtreecommitdiffstats
path: root/testing/templates
diff options
context:
space:
mode:
authorLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2018-06-23 18:18:50 +0200
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2018-06-23 18:18:50 +0200
commit19bcb0f50ed5f0933cbf0e72b58ccb1e16cd71b5 (patch)
tree1730645b812f84f1002f802022e8a0f4c53b13e1 /testing/templates
parenta46966b4ad0f9223d7e5e12d675b337a048afd3e (diff)
downloadaskama-19bcb0f50ed5f0933cbf0e72b58ccb1e16cd71b5.tar.gz
askama-19bcb0f50ed5f0933cbf0e72b58ccb1e16cd71b5.tar.bz2
askama-19bcb0f50ed5f0933cbf0e72b58ccb1e16cd71b5.zip
Add test for range operators
Diffstat (limited to '')
-rw-r--r--testing/templates/ranges.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/testing/templates/ranges.txt b/testing/templates/ranges.txt
new file mode 100644
index 0000000..d87ef6a
--- /dev/null
+++ b/testing/templates/ranges.txt
@@ -0,0 +1,5 @@
+{{ foo[..]|join("") }}
+{{ foo[0 + 1..]|join("") }}
+{% let bar = 1 %}
+{{ foo[..bar]|join("") }}
+{{ foo[..=bar]|join("") }}