]> ruin.nu Git - ndwebbie.git/blob - lib/NDWeb/View/TT.pm
Use filter instead of having to stash the function everywhere
[ndwebbie.git] / lib / NDWeb / View / TT.pm
1 package NDWeb::View::TT;
2
3 use strict;
4 use base 'Catalyst::View::TT';
5
6 use NDWeb::Include;
7
8 __PACKAGE__->config({
9         INCLUDE_PATH => [
10                 NDWeb->path_to( 'root', 'src' ),
11                 NDWeb->path_to( 'root', 'lib' )
12         ],
13         FILTERS => {
14                 commify => \&comma_value,
15         },
16         PRE_PROCESS  => 'config/main.tt2',
17         WRAPPER      => 'site/wrapper.tt2',
18         ERROR        => 'error.tt2',
19         TIMER        => 0,
20         #DEBUG        => 'undef',
21         TEMPLATE_EXTENSION => '.tt2',
22         #CACHE_SIZE => 256,
23 });
24
25 =head1 NAME
26
27 NDWeb::View::TT - Catalyst TTSite View
28
29 =head1 SYNOPSIS
30
31 See L<NDWeb>
32
33 =head1 DESCRIPTION
34
35 Catalyst TTSite View.
36
37 =head1 AUTHOR
38
39 A clever guy
40
41 =head1 LICENSE
42
43 This library is free software, you can redistribute it and/or modify
44 it under the same terms as Perl itself.
45
46 =cut
47
48 1;
49