]> iEval git - plack-app-gruntmaster.git/blame_incremental - lib/Gruntmaster/Page/Us.pm
Make contest problem entries more cacheable
[plack-app-gruntmaster.git] / lib / Gruntmaster / Page / Us.pm
... / ...
CommitLineData
1package Gruntmaster::Page::Us;
2
3use 5.014000;
4use strict;
5use warnings;
6use Gruntmaster::Page::Base us => 'Users';
7our @ISA = qw/Gruntmaster::Page::Base/;
8our $VERSION = '0.001';
9
10sub _generate{
11 my ($self, $htc, $lang, $env) = @_;
12 debug $env => "language is '$lang'";
13
14 $htc->param(users => [ sort { lc $a->{name} cmp lc $b->{name} }
15 map { {id => $_, name => user_name} }
16 grep { user_name =~ /\w/ } users ]);
17}
18
191
This page took 0.021755 seconds and 4 git commands to generate.