]>
iEval git - plack-app-gruntmaster.git/blob - gruntmaster-genallpages
5 use Gruntmaster
::Page
::Log
;
6 use Gruntmaster
::Data qw
/contests jobcard problems users PUBLISH/;
10 say STDERR
"Generating page $what";
11 PUBLISH genpage
=> $what;
14 generate
"ct/index.html";
15 generate
"ct/$_/index.thml" for contests
;
16 generate
"ct/$_/log/st.html" for contests
;
18 generate
"us/index.html";
19 generate
"us/$_.html" for users
;
21 for my $ct (undef, contests
) {
22 local $Gruntmaster::Data
::contests
= $ct;
23 my $ctp = defined $ct ?
"ct/$ct/" : '';
24 generate
"${ctp}log/index.html";
25 my $pagecnt = jobcard
/ Gruntmaster
::Page
::Log
::PAGE_SIZE
;
26 generate
"${ctp}log/$_.html" for 1 .. $pagecnt;
27 generate
"${ctp}log/job/$_.html" for 1 .. jobcard
;
28 generate
"${ctp}submit.html";
29 generate
"${ctp}pb/index.html";
30 generate
"${ctp}pb/$_.html" for problems
;
This page took 0.049873 seconds and 5 git commands to generate.