Add example test suite
[gruntmaster-page.git] / lib / Gruntmaster / Page / Us.pm
1 package Gruntmaster::Page::Us;
2
3 use 5.014000;
4 use strict;
5 use warnings;
6 use Gruntmaster::Page::Base us => 'Users';
7 our @ISA = qw/Gruntmaster::Page::Base/;
8 our $VERSION = '0.001';
9
10 sub _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
19 1
This page took 0.018723 seconds and 4 git commands to generate.