The blob action now has simple (but functioning) syntax highlighting (thanks to jrock...
[catagits/Gitalist.git] / lib / Gitalist / View / Default.pm
CommitLineData
d3feefcf 1package Gitalist::View::Default;
42fe5d11 2use Moose;
3use Gitalist; # ->path_to
4use namespace::autoclean;
d3feefcf 5
42fe5d11 6extends 'Catalyst::View::TT';
749c6583 7with 'Catalyst::View::ContentNegotiation::XHTML';
d3feefcf 8
04d1d917 9use Template::Plugin::Cycle;
10
d3feefcf 11=head1 NAME
12
13Gitalist::View::Default - Catalyst View
14
15=head1 DESCRIPTION
16
17Catalyst View.
18
19=head1 AUTHOR
20
1feb3d6b 21Dan Brook
d3feefcf 22
23=head1 LICENSE
24
25This library is free software. You can redistribute it and/or modify
26it 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);