Remove the massive chunk of crud to do application/xhtml+xml detection and replace...
[catagits/Gitalist.git] / lib / Gitalist / View / Default.pm
1 package Gitalist::View::Default;
2 use Moose;
3 use Gitalist; # ->path_to
4 use namespace::autoclean;
5
6 extends 'Catalyst::View::TT';
7 with 'Catalyst::View::ContentNegotiation::XHTML';
8
9 =head1 NAME
10
11 Gitalist::View::Default - Catalyst View
12
13 =head1 DESCRIPTION
14
15 Catalyst View.
16
17 =head1 AUTHOR
18
19 Dan Brook,,,
20
21 =head1 LICENSE
22
23 This library is free software. You can redistribute it and/or modify
24 it under the same terms as Perl itself.
25
26 =cut
27
28 __PACKAGE__->config(
29         TEMPLATE_EXTENSION => '.tt2',
30         # Set the location for TT files
31         INCLUDE_PATH => [ Gitalist->path_to( 'templates' ) ],
32 #       WRAPPER => 'default.tt2',
33 );
34
35 __PACKAGE__->meta->make_immutable(inline_constructor => 0);