X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=lib%2FGruntmaster%2FPage%2FAccount.pm;h=be27aff59ecd3d702c127ab55faea8f13c695893;hb=eafc7f54b9d964aac41b0715e18caf5ed58ef89a;hp=f757e9fe08b859b4853627bac9cf0a1889782ae5;hpb=6eff0ac56cb1c41c771153c0a03a74a7fd4b2100;p=plack-app-gruntmaster.git diff --git a/lib/Gruntmaster/Page/Account.pm b/lib/Gruntmaster/Page/Account.pm index f757e9f..be27aff 100644 --- a/lib/Gruntmaster/Page/Account.pm +++ b/lib/Gruntmaster/Page/Account.pm @@ -3,17 +3,12 @@ package Gruntmaster::Page::Account; use 5.014000; use strict; use warnings; -use parent qw/Exporter/; -our @EXPORT_OK = qw/generate/; +use Gruntmaster::Page::Base account => 'Account'; +our @ISA = qw/Gruntmaster::Page::Base/; our $VERSION = '0.001'; -use constant TITLE => 'Account'; - -use HTML::Template::Compiled; -use Gruntmaster::Page::Common qw/header footer patch_templates/; - -my %templates = ( - en => <<'HTML', +use constant TEMPLATES => { + en => <<'HTML',

Register

@@ -46,15 +41,6 @@ Confirm new password:
HTML -); - -patch_templates %templates, 'account'; - -$templates{$_} = header($_, TITLE) . $templates{$_} for keys %templates; -$templates{$_} .= footer $_ for keys %templates; - -sub generate{ - HTML::Template::Compiled->new(scalarref => \$templates{$_[1]})->output -} +}; 1