]> iEval git - plack-app-gruntmaster.git/blame - lib/Gruntmaster/Page/Us/Entry.pm
Fix and update standings
[plack-app-gruntmaster.git] / lib / Gruntmaster / Page / Us / Entry.pm
CommitLineData
4aa8ba86
MG
1package Gruntmaster::Page::Us::Entry;
2
3use 5.014000;
4use strict;
5use warnings;
bb95f538
MG
6use Gruntmaster::Page::Base us_entry => '<tmpl_var name>';
7our @ISA = qw/Gruntmaster::Page::Base/;
4aa8ba86
MG
8our $VERSION = '0.001';
9
bb95f538 10use constant TEMPLATES => {
4aa8ba86
MG
11 en => <<'HTML',
12<h1><tmpl_var name></h1>
13Town: <tmpl_var town><br>
14University: <tmpl_var university><br>
15Level: <tmpl_var level>
16HTML
bb95f538 17};
4aa8ba86 18
bb95f538
MG
19sub _generate{
20 my ($self, $htc, $path, $lang) = @_;
4aa8ba86 21
bb95f538 22 $path =~ m,^us/([^/]+)\.html$,;
4aa8ba86 23 local $_ = $1;
4aa8ba86
MG
24
25 $htc->param(name => user_name);
26 $htc->param(town => user_town);
27 $htc->param(university => user_university);
28 $htc->param(level => user_level);
4aa8ba86
MG
29}
30
311
This page took 0.024415 seconds and 4 git commands to generate.