From 19bcb0f50ed5f0933cbf0e72b58ccb1e16cd71b5 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Sat, 23 Jun 2018 18:18:50 +0200 Subject: Add test for range operators --- testing/templates/ranges.txt | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 testing/templates/ranges.txt (limited to 'testing/templates/ranges.txt') 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("") }} -- cgit