]>
iEval git - plack-app-gruntmaster.git/blob - JS.pm
fa00293e52e622861206d31edeb87414e7253287
1 package Gruntmaster
::Page
::JS
;
6 use Gruntmaster
::Page
::Base
;
7 our @ISA = qw
/Gruntmaster::Page::Base/;
8 our $VERSION = '0.001';
10 use File
::Slurp qw
/read_file/;
11 use JavaScript
::Minifier
::XS qw
/minify/;
14 my ($self, $format, $logger) = @_;
17 $js .= read_file
$_ for <js
/*.js
>;
18 [200, ['Content-Type' => 'application/javascript', 'Cache-Control' => 'max-age=604800'], [$js] ]
21 sub variants
{ [[js
=> 1, 'application/javascript', undef, undef, undef, undef]] }
This page took 0.042494 seconds and 3 git commands to generate.