#encoding utf-8 #import cgi #extends views.layout #attr $title = 'Список книг' #def body

$title

#if $books_by_author
#set $series = None #set $columns1 = $len($columns)+1 #for $author in $sorted($books_by_author) #set $books = $books_by_author[$author] #for $book in $books #if $book.series != $series #set $series = $book.series #end if #for $column in $columns #end for #end for #end for
$author — #if $book.series $cgi.escape($series, 1)#slurp #else Вне серий#slurp #end if
$cgi.escape(unicode($getattr($book, $column) or ''))
#else

Не найдено ни одной книги!

#end if #end def