X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=lib%2FGruntmaster%2FPage%2FBase.pm;h=1741b30c5cdfbd483cd56b7531da63ce51f699bb;hb=dfe9fad19b62489af03cdd2fd29cc5057536b483;hp=a7188d7cd4e660b3c6371be00f316bf55f54cb6e;hpb=7dc3247307f2e86af154dc449224f22ba8923c79;p=plack-app-gruntmaster.git diff --git a/lib/Gruntmaster/Page/Base.pm b/lib/Gruntmaster/Page/Base.pm index a7188d7..1741b30 100644 --- a/lib/Gruntmaster/Page/Base.pm +++ b/lib/Gruntmaster/Page/Base.pm @@ -4,6 +4,7 @@ use 5.014000; use strict; use warnings; +use Encode qw/encode/; use File::Slurp qw/read_file/; use HTML::Template::Compiled; @@ -36,20 +37,46 @@ my %orig_header_templates = ( en => <<'HTML', TITLE_GOES_HERE - - - - + - -
iEval
-
TITLE_GOES_HERE
+ + + + + +
+ +
iEval
+
TITLE_GOES_HERE
HTML ); @@ -114,7 +141,7 @@ sub generate{ my $htc = HTML::Template::Compiled->new(scalarref => \$templates{$self}{$lang}, default_escape => 'HTML',); $self->_generate($htc, $lang, @args); - [200, ['Content-Type' => 'text/html', 'Content-Language' => $_[1]], [ $htc->output ] ] + [200, ['Content-Type' => 'text/html', 'Content-Language' => $_[1], 'Vary' => 'Accept-Language'], [ encode 'UTF-8' => $htc->output ] ] } sub _generate {}