X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=lib%2FGruntmaster%2FPage%2FAccount.pm;h=be27aff59ecd3d702c127ab55faea8f13c695893;hb=bb95f538bf263c0294d87cfb90d58c66117b9aab;hp=20acc6ab30e6731f6f0786acd3d18edb8915426c;hpb=4aa8ba862bf3a79362df73c3d1e8707e8135af23;p=gruntmaster-page.git diff --git a/lib/Gruntmaster/Page/Account.pm b/lib/Gruntmaster/Page/Account.pm index 20acc6a..be27aff 100644 --- a/lib/Gruntmaster/Page/Account.pm +++ b/lib/Gruntmaster/Page/Account.pm @@ -3,15 +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 HTML::Template::Compiled; -use Gruntmaster::Page::Common qw/cook_templates reload_templates/; - -my %orig_templates = ( - en => <<'HTML', +use constant TEMPLATES => { + en => <<'HTML',

Register

@@ -44,13 +41,6 @@ Confirm new password:
HTML -); - -my %templates = cook_templates %orig_templates, account => 'Account'; - -sub generate{ - %templates = cook_templates %orig_templates, account => 'Account' if reload_templates; - HTML::Template::Compiled->new(scalarref => \$templates{$_[1]})->output -} +}; 1