+ #for $column in $columns
+ #if $column == 'count'
+ #set $style = ' style="text-align: right; width: 5ex"'
+ #else
+ #set $style = ''
+ #end if
+ <td$style><a href="/books-by-author/$author.id/">
+ $cgi.escape(unicode($getattr($author, $column) or ''))
+ </a></td>
+ #end for