use constant TITLE => 'Gruntmaster 6000';
-use Fcntl qw/:flock/;
use HTML::Template::Compiled;
-use IO::File;
-use Gruntmaster::Page qw/header footer/;
+use Gruntmaster::Page::Common qw/header footer/;
my %templates = (
en => <<'HTML',
$templates{$_} .= footer $_ for keys %templates;
sub generate{
- 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
+ HTML::Template::Compiled->new(scalarref => \$templates{$_[1]})->output
}
1