]> iEval git - gruntmaster-page.git/blobdiff - lib/Gruntmaster/Page/CSS.pm
Prepare for Dancer2 port
[gruntmaster-page.git] / lib / Gruntmaster / Page / CSS.pm
diff --git a/lib/Gruntmaster/Page/CSS.pm b/lib/Gruntmaster/Page/CSS.pm
deleted file mode 100644 (file)
index 912e948..0000000
+++ /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 <css/*.css>;
-       [200, ['Content-Type' => 'text/css', 'Cache-Control' => 'public, max-age=604800', 'X-Forever' => 1], [minify $css] ]
-}
-
-1
This page took 0.018181 seconds and 4 git commands to generate.