hydra/src/lib/Hydra/View/TT.pm

18 lines
308 B
Perl
Raw Normal View History

2008-11-25 11:01:42 +00:00
package Hydra::View::TT;
use strict;
use base 'Catalyst::View::TT';
use Hydra::Helper::Nix;
__PACKAGE__->config(
TEMPLATE_EXTENSION => '.tt',
expose_methods => [qw/log_exists/]);
sub log_exists {
my ($self, $c, $drvPath) = @_;
my $x = getDrvLogPath($drvPath);
return defined $x;
}
1;