aboutsummaryrefslogtreecommitdiffstats
path: root/testing/tests/gen_ws_tests.py
diff options
context:
space:
mode:
authorLibravatar René Kijewski <kijewski@library.vetmed.fu-berlin.de>2021-07-18 16:32:49 +0200
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2021-11-11 15:35:45 +0100
commit10b2d9c615460c9dbb241b887d0e6e17e3c001ca (patch)
tree4ec234cf416f7bcdc0bc037f787ebbd7ac4cb67e /testing/tests/gen_ws_tests.py
parenta8503e0fa2d6065b1c471becf76dde68571b7984 (diff)
downloadaskama-10b2d9c615460c9dbb241b887d0e6e17e3c001ca.tar.gz
askama-10b2d9c615460c9dbb241b887d0e6e17e3c001ca.tar.bz2
askama-10b2d9c615460c9dbb241b887d0e6e17e3c001ca.zip
Implement for-else
This PR implements for-else statements like in Jinja. They make it easy to print an alternative message if the loop iterator was empty. E.g. ```rs {% for result in result %} <li>{{ result }}</li> {% else %} <li><em>no results</em></li> {% endfor %} ```
Diffstat (limited to 'testing/tests/gen_ws_tests.py')
0 files changed, 0 insertions, 0 deletions