Removed execution flag from non-exe files
[Fumo.git] / lib / Fumo / View / TT.pm
blob177daaf2cf0665a673e64711cf7fd7743f24e6ba
1 package Fumo::View::TT;
3 use strict;
4 use base 'Catalyst::View::TT';
6 __PACKAGE__->config({
7 CATALYST_VAR => 'Catalyst',
8 INCLUDE_PATH => [
9 Fumo->path_to( 'root', 'src' ),
10 Fumo->path_to( 'root', 'lib' )
12 WRAPPER => 'global.tt2',
13 ERROR => 'error.tt2',
14 TIMER => 0,
15 DEBUG => undef
16 });
18 sub new {
19 my $class = shift;
20 my $self = $class->NEXT::new(@_);
22 $self->{template}->context->define_filter(
23 firstchar => sub {
24 my ($expr) = @_;
26 return substr($expr, 0, 1);
30 return $self;
33 =head1 NAME
35 Fumo::View::TT - Catalyst TTSite View
37 =head1 SYNOPSIS
39 See L<Fumo>
41 =head1 DESCRIPTION
43 Catalyst TTSite View.
45 =head1 AUTHOR
47 Philip Jackson,,,
49 =head1 LICENSE
51 This library is free software, you can redistribute it and/or modify
52 it under the same terms as Perl itself.
54 =cut