]> iEval git - gruntmaster-page.git/blobdiff - lib/Gruntmaster/Page/JS.pm
Prepare for Dancer2 port
[gruntmaster-page.git] / lib / Gruntmaster / Page / JS.pm
diff --git a/lib/Gruntmaster/Page/JS.pm b/lib/Gruntmaster/Page/JS.pm
deleted file mode 100644 (file)
index f51000e..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-package Gruntmaster::Page::JS;
-
-use Gruntmaster::Page::Base;
-use JavaScript::Minifier::XS qw/minify/;
-
-sub generate{
-       my ($self, $format, $env) = @_;
-       debug $env => "";
-       my $js;
-       $js .= read_file $_ for <js/*.js>;
-       [200, ['Content-Type' => 'application/javascript', 'Cache-Control' => 'public, max-age=604800', 'X-Forever' => 1], [minify $js] ]
-}
-
-1
This page took 0.025698 seconds and 4 git commands to generate.