]> iEval git - plack-app-gruntmaster.git/blobdiff - lib/Gruntmaster/Page/Base.pm
Add logo sprites and css
[plack-app-gruntmaster.git] / lib / Gruntmaster / Page / Base.pm
index e8434ef5424cd6acda980ed1e9c11c0b5b7acc9a..9622d2ae621849d2f7be00e8c673953f2e09cd6c 100644 (file)
@@ -4,7 +4,6 @@ use 5.014000;
 use strict;
 use warnings;
 
-use Encode qw/encode/;
 use File::Slurp qw/read_file/;
 use HTML::Template::Compiled;
 
@@ -86,12 +85,19 @@ my %orig_header_templates = (
 
 <h1 id="title">TITLE_GOES_HERE</h1>
 <div id="result"></div>
+
+<div id="content">
 HTML
 );
 
 my %orig_footer_templates = (
   en => <<'HTML',
 
+</div>
+</div>
+
+<div id="sponsors"> </div>
+
 <footer>
 Dilmom: Why don't you call your product the Gruntmaster 6000?
 Dilbert: What kind of product do you see when you imagine a Gruntmaster 6000?
@@ -146,7 +152,9 @@ 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], 'Vary' => 'Accept-Language', 'X-Forever' => 1], [ encode 'UTF-8' => $htc->output ] ]
+       my $out = $htc->output;
+       utf8::downgrade($out);
+       [200, ['Content-Type' => 'text/html', 'Content-Language' => $_[1], 'Vary' => 'Accept-Language', 'X-Forever' => 1], [ $out ] ]
 }
 
 sub _generate {}
This page took 0.017835 seconds and 4 git commands to generate.