- my ($contest, $id) = ($1, $2);
- my $htc = HTML::Template::Compiled->new(scalarref => \$templates{$_[1]});
+sub _generate{
+ my ($self, $htc, $lang, $env, $contest, $id) = @_;
+ debug $env => "language is '$lang', contest is '$contest', id is '$id'";