aboutsummaryrefslogtreecommitdiffstats
path: root/testing/tests/loop_else.rs (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add exhaustive whitespace tests for for-elseLibravatar René Kijewski2021-11-111-0/+1089
|
* Implement for-elseLibravatar René Kijewski2021-11-111-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 %} ```