X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=lib%2FGruntmaster%2FPage%2FIndex.pm;h=4f20bace0494fe0ed79b21e148d4ab459a635a22;hb=cd9af27e94244e6454c3db787a8ca6811f44fc16;hp=5cf282de00963fe064b7b68ef79fbc491181cb0f;hpb=42546e6c1b709dc4c8d8e7048becc14278b6cdf0;p=plack-app-gruntmaster.git diff --git a/lib/Gruntmaster/Page/Index.pm b/lib/Gruntmaster/Page/Index.pm index 5cf282d..4f20bac 100644 --- a/lib/Gruntmaster/Page/Index.pm +++ b/lib/Gruntmaster/Page/Index.pm @@ -9,10 +9,8 @@ our $VERSION = '0.001'; 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', @@ -23,11 +21,7 @@ $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('output + HTML::Template::Compiled->new(scalarref => \$templates{$_[1]})->output } 1