-sub generate{
- %templates = cook_templates %orig_templates, st => 'Standings' if reload_templates;
- local $Gruntmaster::Data::contest = ($_[0] =~ m,^ct/([^/]+)/,)[0];
- my $htc = HTML::Template::Compiled->new(scalarref => \$templates{$_[1]});
+ $path =~ m,^(?:ct/([^/]+)/)?,;
+ local $Gruntmaster::Data::contest = $1;