X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=lib%2FGruntmaster%2FPage%2FCSS.pm;fp=lib%2FGruntmaster%2FPage%2FCSS.pm;h=0000000000000000000000000000000000000000;hb=e03e380bb1f61aca398e88f863514e4a937c12ce;hp=912e948a03600febf1f189a3dc3fe9126d2c389d;hpb=a122bb9b5954e4384b8f1c3f52bcdda74b421f25;p=plack-app-gruntmaster.git diff --git a/lib/Gruntmaster/Page/CSS.pm b/lib/Gruntmaster/Page/CSS.pm deleted file mode 100644 index 912e948..0000000 --- a/lib/Gruntmaster/Page/CSS.pm +++ /dev/null @@ -1,15 +0,0 @@ -package Gruntmaster::Page::CSS; - -use Gruntmaster::Page::Base; -use CSS::Minifier::XS qw/minify/; - -sub generate{ - my ($self, $format, $env, $theme) = @_; - debug $env => "theme is $theme"; - return [404, ['Content-Type' => 'text/plain'], [ 'Not found' ]] unless -e "css/themes/$theme.css"; - my $css = read_file "css/themes/$theme.css"; - $css .= read_file $_ for ; - [200, ['Content-Type' => 'text/css', 'Cache-Control' => 'public, max-age=604800', 'X-Forever' => 1], [minify $css] ] -} - -1