]> iEval git - gruntmaster-page.git/blobdiff - lib/Gruntmaster/Page/Index.pm
Remove some languages
[gruntmaster-page.git] / lib / Gruntmaster / Page / Index.pm
index 604be12c057c27eb721687b12e3d39b043eb7101..a413e6a9cba5e42a46b98aaeba36519a84bff2e9 100644 (file)
@@ -3,31 +3,13 @@ package Gruntmaster::Page::Index;
 use 5.014000;
 use strict;
 use warnings;
-use parent qw/Exporter/;
-our @EXPORT_OK = qw/generate/;
+use Gruntmaster::Page::Base index => 'Gruntmaster 6000';
+our @ISA = qw/Gruntmaster::Page::Base/;
 our $VERSION = '0.001';
 
-use constant TITLE => 'Gruntmaster 6000';
-
-use Fcntl qw/:flock/;
-use HTML::Template::Compiled;
-use IO::File;
-use Gruntmaster::Page::Common qw/header footer/;
-
-my %templates = (
-  en => <<'HTML',
+use constant TEMPLATES => {
+       en => <<'HTML',
 HTML
-);
-
-$templates{$_}  = header($_, TITLE) . $templates{$_} for keys %templates;
-$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
-}
+};
 
 1
This page took 0.022905 seconds and 4 git commands to generate.