<span>
<a href="/book/{{ book.id }}">{{ book.title }}</a>
</span>
{% if book.authors %}
by {% include 'snippets/authors.html' with book=book %}
{% endif %}