From 9a3c57ac34c3507282828de4ef4f7ebbfb014f81 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Mon, 25 Jun 2018 12:46:13 +0200 Subject: Add test for 'loop.first' variable --- testing/templates/for.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'testing/templates') diff --git a/testing/templates/for.html b/testing/templates/for.html index f63df9d..8b4032d 100644 --- a/testing/templates/for.html +++ b/testing/templates/for.html @@ -1,3 +1,3 @@ {% for s in strings %} - {{- loop.index0 }}. {{ s }} + {{- loop.index0 }}. {{ s }}{% if loop.first %} (first){% endif %} {% endfor %} -- cgit