$def with (list, editions) $list.name - Editions $def render_authors(book): $if book.works: $ authors = book.works[0].get_authors() $else: $ authors = book.get_authors() $if authors: $for a in authors: $a.name$cond(not loop.last, ", ") $else: Unknown authors