]>
Commit | Line | Data |
---|---|---|
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 | use constant TEMPLATES => { | |
11 | en => <<'HTML', | |
12 | <ul><tmpl_loop users><li><a href="<tmpl_var id>.var"><tmpl_var name></a> | |
13 | </tmpl_loop></ul> | |
14 | HTML | |
15 | }; | |
16 | ||
17 | sub _generate{ | |
18 | my ($self, $htc, $path, $lang) = @_; | |
19 | ||
20 | $htc->param(users => [ map { {id => $_, name => user_name} } users ]); | |
21 | } | |
22 | ||
23 | 1 |