From 0711e3667b1e06e891b1b6972035d0330c5ae4c2 Mon Sep 17 00:00:00 2001 From: bott Date: Fri, 14 Sep 2018 02:14:58 +0200 Subject: Fix operator preference at loop.index --- testing/templates/precedence-for.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'testing/templates/precedence-for.html') diff --git a/testing/templates/precedence-for.html b/testing/templates/precedence-for.html index e5f7e8b..c8d2cdd 100644 --- a/testing/templates/precedence-for.html +++ b/testing/templates/precedence-for.html @@ -1,3 +1,3 @@ {% for s in strings %} - {{- loop.index0 }}. {{ s }}{% if !loop.first %}{% else %} (first){% endif %} + {{- loop.index0 }}. {{ s }}{{ 2 * loop.index }}{% if !loop.first %}{% else %} (first){% endif %} {% endfor %} -- cgit