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