package Gruntmaster::Page::Us;

use 5.014000;
use strict;
use warnings;
use Gruntmaster::Page::Base us => 'Users';
our @ISA = qw/Gruntmaster::Page::Base/;
our $VERSION = '0.001';

use constant TEMPLATES => {
	en => <<'HTML',
<ol><tmpl_loop users><li><a href="<tmpl_var id>.var"><tmpl_var name></a>
</tmpl_loop></ol>
HTML
};

sub _generate{
	my ($self, $htc, $path, $lang) = @_;

	$htc->param(users => [ sort { lc $a->{name} cmp lc $b->{name} }
							 map { {id => $_, name => user_name} }
							   grep { user_name =~ /\w/ } users ]);
}

1
