3 ms·
This is a long shot, but could you be thinking of the Django template language? https://docs.djangoproject.com/en/dev/ref/templates/builtins/#for-empty https:/
by Lazare 13y ago
This is a long shot, but could you be thinking of the Django template language?
https://docs.djangoproject.com/en/dev/ref/templates/builtins/#for-empty https://docs.djangoproject.com/en/dev/ref/templates/builtins...
<ul>
{% for athlete in athlete_list %}
<li>{{ athlete.name }}</li>
{% empty %}
<li>Sorry, no athletes in this list.</li>
{% endfor %}
</ul>