]> ruin.nu Git - ndwebbie.git/blobdiff - lib/NDWeb/View/TT.pm
Use filter instead of having to stash the function everywhere
[ndwebbie.git] / lib / NDWeb / View / TT.pm
index b0f85713f1d4e164c066f9d1b32af65f88f5e6e6..ac28c3fd1f8a55bc717e42fee0406dc7c8bace26 100644 (file)
@@ -3,11 +3,16 @@ package NDWeb::View::TT;
 use strict;
 use base 'Catalyst::View::TT';
 
+use NDWeb::Include;
+
 __PACKAGE__->config({
        INCLUDE_PATH => [
                NDWeb->path_to( 'root', 'src' ),
                NDWeb->path_to( 'root', 'lib' )
        ],
+       FILTERS => {
+               commify => \&comma_value,
+       },
        PRE_PROCESS  => 'config/main.tt2',
        WRAPPER      => 'site/wrapper.tt2',
        ERROR        => 'error.tt2',