Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add exhaustive whitespace tests for for-else | René Kijewski | 2021-11-11 | 1 | -0/+1089 |
| | |||||
* | Implement for-else | René Kijewski | 2021-11-11 | 1 | -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 %} ``` |