- my $template = $templates{$_[1]};
- my $htc = HTML::Template::Compiled->new(scalarref => \$template);
- IO::File->new('>meta.yml')->close unless -f 'meta.yml';
- flock my $metafh = IO::File->new('<meta.yml'), LOCK_SH;
- $htc->output
+ %templates = cook_templates %orig_templates, index => 'Gruntmaster 6000' if reload_templates;
+ HTML::Template::Compiled->new(scalarref => \$templates{$_[1]})->output