X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=lib%2FGruntmaster%2FPage%2FIndex.pm;h=a413e6a9cba5e42a46b98aaeba36519a84bff2e9;hb=bb95f538bf263c0294d87cfb90d58c66117b9aab;hp=0214ea6b5c906de88d294e36270f0f131d05dc07;hpb=4aa8ba862bf3a79362df73c3d1e8707e8135af23;p=plack-app-gruntmaster.git diff --git a/lib/Gruntmaster/Page/Index.pm b/lib/Gruntmaster/Page/Index.pm index 0214ea6..a413e6a 100644 --- a/lib/Gruntmaster/Page/Index.pm +++ b/lib/Gruntmaster/Page/Index.pm @@ -3,23 +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 HTML::Template::Compiled; -use Gruntmaster::Page::Common qw/cook_templates reload_templates/; - -my %orig_templates = ( - en => <<'HTML', +use constant TEMPLATES => { + en => <<'HTML', HTML -); - -my %templates = cook_templates %orig_templates, index => 'Gruntmaster 6000'; - -sub generate{ - %templates = cook_templates %orig_templates, index => 'Gruntmaster 6000' if reload_templates; - HTML::Template::Compiled->new(scalarref => \$templates{$_[1]})->output -} +}; 1