Skip to content

Instantly share code, notes, and snippets.

@bbelderbos

bbelderbos/for-empty

Created Jul 20, 2020
Embed
What would you like to do?
{% for book in books %}
<li>{{ book }}</li>
{% empty %}
<li>Sorry, there are no books.</li>
{% endfor %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.