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'; |
749c6583 |
7 | with 'Catalyst::View::ContentNegotiation::XHTML'; |
d3feefcf |
8 | |
04d1d917 |
9 | use Template::Plugin::Cycle; |
10 | |
d3feefcf |
11 | =head1 NAME |
12 | |
13 | Gitalist::View::Default - Catalyst View |
14 | |
15 | =head1 DESCRIPTION |
16 | |
17 | Catalyst View. |
18 | |
19 | =head1 AUTHOR |
20 | |
1feb3d6b |
21 | Dan Brook |
d3feefcf |
22 | |
23 | =head1 LICENSE |
24 | |
25 | This library is free software. You can redistribute it and/or modify |
26 | it under the same terms as Perl itself. |
27 | |
28 | =cut |
29 | |
30 | __PACKAGE__->config( |
31 | TEMPLATE_EXTENSION => '.tt2', |
32 | # Set the location for TT files |
04d1d917 |
33 | INCLUDE_PATH => [ Gitalist->path_to( 'templates' ) ], |
34 | WRAPPER => 'default.tt2', |
d3feefcf |
35 | ); |
36 | |
7e54e579 |
37 | # before end => sub { |
38 | # my ( $self, $c ) = @_; |
39 | # return unless $c->stash->{syntax_highlight}; |
40 | # $c->forward( 'View::SyntaxHighlight', $c->stash->{syntax_highlight} ); |
41 | # }; |
42 | |
42fe5d11 |
43 | __PACKAGE__->meta->make_immutable(inline_constructor => 0); |