-my %templates = (
- en => <<'HTML',
-<table border>
-<thead>
-<tr><th>ID<th>Problem<th>Date<th>Size<th>User<th>Result
-<tbody>
-<tmpl_loop log><tr><td><a href="<tmpl_var id>"><tmpl_var id></a>
-<td><a href="../pb/<tmpl_var problem>"><tmpl_var name></a>
-<td><tmpl_var date>
-<td><a href="src/<tmpl_var filename>"<tmpl_if private> data-private</tmpl_if>><tmpl_var size></a></a>
-<td><tmpl_var user><td class="r<tmpl_var result>"><tmpl_var result_text>
-</tmpl_loop>
-</table>
-HTML
-);
-
-$templates{$_} = header($_, TITLE) . $templates{$_} for keys %templates;
-$templates{$_} .= footer $_ for keys %templates;
-
-sub generate{
- $_[0] =~ m,^(?:ct/([^/]+)/)?log/(\w+)\.html$,;
- local $Gruntmaster::Data::contest = $1;
- my $page = $2 eq 'index' ? 0 : $2;
-
- my $htc = HTML::Template::Compiled->new(scalarref => \$templates{$_[1]});