- my $template = $templates{$_[1]};
- my $htc = HTML::Template::Compiled->new(scalarref => \$template);
- $htc->output
+ %templates = cook_templates %orig_templates, learn => 'Learn' if reload_templates;
+ HTML::Template::Compiled->new(scalarref => \$templates{$_[1]})->output;