The blob action now has simple (but functioning) syntax highlighting (thanks to jrock...
[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 use Template::Plugin::Cycle;
10
11 =head1 NAME
12
13 Gitalist::View::Default - Catalyst View
14
15 =head1 DESCRIPTION
16
17 Catalyst View.
18
19 =head1 AUTHOR
20
21 Dan Brook
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
33         INCLUDE_PATH       => [ Gitalist->path_to( 'templates' ) ],
34         WRAPPER            => 'default.tt2',
35 );
36
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
43 __PACKAGE__->meta->make_immutable(inline_constructor => 0);