pgc-www/templates/book/author.html.ep

8 lines
206 B
Plaintext

% layout 'default';
% title 'Author: ' . $author->name;
<h1><%= title %></h1>
<strong><%= $author->name %></strong>
% my $count = $author->books->count;
wrote <%= $count %> book<%= "s" if ($count > 1) %>.