diff options
author | bott <mhpoin@gmail.com> | 2018-09-13 23:40:17 +0200 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2018-09-14 13:15:41 +0200 |
commit | c0f9fe973e6ff608f4f02f8a6cd39f2e9c50ea5c (patch) | |
tree | 9fde9771eec608640d008fed7433c9857aa5c50d /testing/templates | |
parent | d4671611597837dec3108f3a7f3af46be1bc4c36 (diff) | |
download | askama-c0f9fe973e6ff608f4f02f8a6cd39f2e9c50ea5c.tar.gz askama-c0f9fe973e6ff608f4f02f8a6cd39f2e9c50ea5c.tar.bz2 askama-c0f9fe973e6ff608f4f02f8a6cd39f2e9c50ea5c.zip |
Fix operator preference at loop.first
Diffstat (limited to '')
-rw-r--r-- | testing/templates/precedence-for.html | 3 |
1 files changed, 3 insertions, 0 deletions
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 %} |