]> iEval git - gruntmaster-page.git/blame_incremental - lib/Gruntmaster/Page/Ct/Entry.pm
Add example test suite
[gruntmaster-page.git] / lib / Gruntmaster / Page / Ct / Entry.pm
... / ...
CommitLineData
1package Gruntmaster::Page::Ct::Entry;
2
3use 5.014000;
4use strict;
5use warnings;
6use Gruntmaster::Page::Base ct_entry => '<tmpl_var name>';
7our @ISA = qw/Gruntmaster::Page::Base/;
8our $VERSION = '0.001';
9
10sub _generate{
11 my ($self, $htc, $lang, $env, $id) = @_;
12 debug $env => "language is '$lang' and id is '$id'";
13
14 $htc->param(id => $id);
15 $htc->param(name => contest_name $id);
16 $htc->param(start => strftime '%c', localtime contest_start $id);
17 $htc->param(end => strftime '%c', localtime contest_end $id);
18 $htc->param(started => time >= contest_start $id);
19}
20
211
This page took 0.017905 seconds and 4 git commands to generate.