-sub generate{
- my ($path, $lang) = @_;
- my $contest;
- $contest = $1 if $path =~ m,ct/([^/]*)/,;
- my $id = ($path =~ m,pb/([^/]*)/index,)[0];
- $path =~ s,/index\.html$,,;
- my $template = $templates{$_[1]};
- my $htc = HTML::Template::Compiled->new(scalarref => \$template);
- flock my $metafh = IO::File->new("<$path/meta.yml"), LOCK_SH;
- my $meta = LoadFile "$path/meta.yml";
+sub _generate{
+ my ($self, $htc, $lang, $env, $contest, $id) = @_;
+ debug $env => "language is '$lang', contest is '$contest', id is '$id'";