diff options
author | yossyJ <28825627+yossyJ@users.noreply.github.com> | 2019-01-05 20:18:59 +0900 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2019-01-08 15:59:45 +0100 |
commit | df07f7f5e3345ced96decb0cb4c4f1bdfcdb1b12 (patch) | |
tree | e6619644eec17048143e1bca34ee37dc0701dae8 /testing/templates/precedence-for.html | |
parent | c5c37f56a1232ff924a6bfda6c1c05e64a6241b1 (diff) | |
download | askama-df07f7f5e3345ced96decb0cb4c4f1bdfcdb1b12.tar.gz askama-df07f7f5e3345ced96decb0cb4c4f1bdfcdb1b12.tar.bz2 askama-df07f7f5e3345ced96decb0cb4c4f1bdfcdb1b12.zip |
Add support for loop.last
Diffstat (limited to 'testing/templates/precedence-for.html')
-rw-r--r-- | testing/templates/precedence-for.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/testing/templates/precedence-for.html b/testing/templates/precedence-for.html index c8d2cdd..57c900b 100644 --- a/testing/templates/precedence-for.html +++ b/testing/templates/precedence-for.html @@ -1,3 +1,3 @@ {% for s in strings %} - {{- loop.index0 }}. {{ s }}{{ 2 * loop.index }}{% if !loop.first %}{% else %} (first){% endif %} + {{- loop.index0 }}. {{ s }}{{ 2 * loop.index }}{% if !loop.first %}{% else %} (first){% endif %}{% if loop.last %} (last){% endif %} {% endfor %} |