diff options
author | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2018-06-25 12:46:13 +0200 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2018-06-25 12:46:13 +0200 |
commit | 9a3c57ac34c3507282828de4ef4f7ebbfb014f81 (patch) | |
tree | 7767ad056d7f770490af199fc5c6080b9580987e /testing/templates/for.html | |
parent | fc0863f40b64ff927a3aa1261b3d8d30afe68d85 (diff) | |
download | askama-9a3c57ac34c3507282828de4ef4f7ebbfb014f81.tar.gz askama-9a3c57ac34c3507282828de4ef4f7ebbfb014f81.tar.bz2 askama-9a3c57ac34c3507282828de4ef4f7ebbfb014f81.zip |
Add test for 'loop.first' variable
Diffstat (limited to '')
-rw-r--r-- | testing/templates/for.html | 2 |
1 files changed, 1 insertions, 1 deletions
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 %} |