From c0f9fe973e6ff608f4f02f8a6cd39f2e9c50ea5c Mon Sep 17 00:00:00 2001 From: bott Date: Thu, 13 Sep 2018 23:40:17 +0200 Subject: Fix operator preference at loop.first --- testing/templates/precedence-for.html | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 testing/templates/precedence-for.html (limited to 'testing/templates') diff --git a/testing/templates/precedence-for.html b/testing/templates/precedence-for.html new file mode 100644 index 0000000..e5f7e8b --- /dev/null +++ b/testing/templates/precedence-for.html @@ -0,0 +1,3 @@ +{% for s in strings %} + {{- loop.index0 }}. {{ s }}{% if !loop.first %}{% else %} (first){% endif %} +{% endfor %} -- cgit