]>
iEval git - gruntmaster-page.git/blob - lib/Gruntmaster/Page/Src.pm
1 package Gruntmaster
::Page
::Src
;
3 use Gruntmaster
::Page
::Base
;
5 use constant CONTENT_TYPES
=> +{
7 cpp
=> 'text/x-c++src',
8 cs
=> 'text/x-chsarp', # Used by GNOME. Not in mime.types.
10 pas
=> 'text/x-pascal',
12 py
=> 'text/x-python',
16 my ($self, $format, $env, $ct, $job, $ext) = @_;
17 debug
$env => "Contest is $ct, job is $job and extension is $ext";
18 local $Gruntmaster::Data
::contest
= $ct if $ct;
20 [200, ['Content-Type' => CONTENT_TYPES
->{$ext}, 'Cache-Control' => 'max-age=604800', 'X-Forever' => 1], [job_inmeta
($job)->{files
}{prog
}{content
}] ]
This page took 0.046965 seconds and 4 git commands to generate.