aboutsummaryrefslogtreecommitdiffstats
path: root/testing/tests/loop_else.rs (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-11-11Add exhaustive whitespace tests for for-elseLibravatar René Kijewski1-0/+1089
2021-11-11Implement for-elseLibravatar René Kijewski1-0/+19
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 %} ```