]>
iEval git - plack-app-gruntmaster.git/blob - CSS.pm
a3e227fb7b536eb52f5000338d39d35a65104749
1 package Gruntmaster
::Page
::CSS
;
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 CSS
::Minifier
::XS qw
/minify/;
14 my ($self, $format, $logger, $theme) = @_;
15 debug
$logger => "theme is $theme";
16 my $css = read_file
"css/themes/$theme.css";
17 $css .= read_file
$_ for <css
/*.css
>;
18 [200, ['Content-Type' => 'text/css', 'Cache-Control' => 'max-age=604800'], [minify
$css] ]
21 sub variants
{ [[css
=> 1, 'text/css', undef, undef, undef, undef]] }
This page took 0.04402 seconds and 3 git commands to generate.