Commit | Line | Data |
d3feefcf |
1 | package Gitalist::View::Default; |
42fe5d11 |
2 | use Moose; |
3 | use Gitalist; # ->path_to |
4 | use namespace::autoclean; |
d3feefcf |
5 | |
42fe5d11 |
6 | extends 'Catalyst::View::TT'; |
d3feefcf |
7 | |
04d1d917 |
8 | use Template::Plugin::Cycle; |
9 | |
d3feefcf |
10 | =head1 NAME |
11 | |
12 | Gitalist::View::Default - Catalyst View |
13 | |
14 | =head1 DESCRIPTION |
15 | |
16 | Catalyst View. |
17 | |
18 | =head1 AUTHOR |
19 | |
1feb3d6b |
20 | Dan Brook |
d3feefcf |
21 | |
22 | =head1 LICENSE |
23 | |
24 | This library is free software. You can redistribute it and/or modify |
25 | it under the same terms as Perl itself. |
26 | |
27 | =cut |
28 | |
29 | __PACKAGE__->config( |
30 | TEMPLATE_EXTENSION => '.tt2', |
31 | # Set the location for TT files |
04d1d917 |
32 | INCLUDE_PATH => [ Gitalist->path_to( 'templates' ) ], |
33 | WRAPPER => 'default.tt2', |
d3feefcf |
34 | ); |
35 | |
42fe5d11 |
36 | __PACKAGE__->meta->make_immutable(inline_constructor => 0); |