X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=lib%2FGruntmaster%2FPage%2FIndex.pm;h=4f20bace0494fe0ed79b21e148d4ab459a635a22;hb=cd9af27e94244e6454c3db787a8ca6811f44fc16;hp=604be12c057c27eb721687b12e3d39b043eb7101;hpb=6d28cb383168de84cebad84aa43900844341bf5d;p=plack-app-gruntmaster.git diff --git a/lib/Gruntmaster/Page/Index.pm b/lib/Gruntmaster/Page/Index.pm index 604be12..4f20bac 100644 --- a/lib/Gruntmaster/Page/Index.pm +++ b/lib/Gruntmaster/Page/Index.pm @@ -9,9 +9,7 @@ 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 = ( @@ -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