[%- # optional, but both the beginning and the ending TT tags support chomping. -%] [% # Provide a title to root/lib/site/header -%] [% META title = 'Book List' -%] [% # Display each book in a table row %] [% FOREACH book IN books -%] [% END -%]
TitleRatingAuthor(s)
[% book.title %] [% book.rating %] [% tt_authors = []; tt_authors.push(author.last_name) FOREACH author IN book.authors -%] [% tt_authors.join(", ") | html %] ([% tt_authors.size | html %])
~