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',
<div id="result"></div>
<h1>Register</h1>
<input type="submit" value="Change password">
</form>
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