-sub generate{
- %templates = cook_templates %orig_templates, pb => 'Problems' if reload_templates;
- $_[0] =~ m,^(?:ct/([^/]+)/)?pb/index.html$,;
- local $Gruntmaster::Data::contest = $1;
+sub _generate{
+ my ($self, $htc, $lang, $env, $ct) = @_;
+ debug $env => "language is '$lang' and contest is '$ct'";
+ local $Gruntmaster::Data::contest = $ct if $ct;