X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;ds=sidebyside;f=lib%2FGruntmaster%2FPage%2FCommon.pm;h=37cdf710fc60e21223a52f01a7b00fe379f262ad;hb=2b0036ac8e077cc20cf9db6ff8dad4091ab50cb3;hp=258f7e753bcf9537d5825dd8a2704fc852275995;hpb=e5a94ee5c11e9e9045a70ae2d33aa039b2259f35;p=plack-app-gruntmaster.git
diff --git a/lib/Gruntmaster/Page/Common.pm b/lib/Gruntmaster/Page/Common.pm
index 258f7e7..37cdf71 100644
--- a/lib/Gruntmaster/Page/Common.pm
+++ b/lib/Gruntmaster/Page/Common.pm
@@ -4,15 +4,18 @@ use 5.014000;
use strict;
use warnings;
use parent qw/Exporter/;
-our @EXPORT_OK = qw/header footer/;
+our @EXPORT_OK = qw/header footer cook_templates reload_templates/;
-my %header_templates = (
+use File::Slurp qw/read_file/;
+
+my %orig_header_templates = (
en => <<'HTML',
TITLE_GOES_HERE
-
-
+
+
+
@@ -24,7 +27,7 @@ my %header_templates = (
HTML
);
-my %footer_templates = (
+my %orig_footer_templates = (
en => <<'HTML',