]> iEval git - gruntmaster-page.git/blobdiff - lib/Gruntmaster/Page/Us.pm
Add example test suite
[gruntmaster-page.git] / lib / Gruntmaster / Page / Us.pm
index 0a2e78a953d0088b6976f0b799580a14c2bb58a7..915ee50aa04e3fd01a8bc057ffd79f171e0cfdc2 100644 (file)
@@ -7,15 +7,9 @@ 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) = @_;
+       my ($self, $htc, $lang, $env) = @_;
+       debug $env => "language is '$lang'";
 
        $htc->param(users => [ sort { lc $a->{name} cmp lc $b->{name} }
                                                         map { {id => $_, name => user_name} }
This page took 0.024899 seconds and 4 git commands to generate.