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