Add mech testing in from the branch I previously made. 5 of the URIs which we test...
[catagits/Gitalist.git] / lib / Gitalist / View / Default.pm
CommitLineData
d3feefcf 1package Gitalist::View::Default;
42fe5d11 2use Moose;
1f9a47c2 3use Moose::Autobox;
42fe5d11 4use namespace::autoclean;
d3feefcf 5
42fe5d11 6extends 'Catalyst::View::TT';
16bdb8df 7with 'Catalyst::View::Component::SubInclude';
d3feefcf 8
04d1d917 9use Template::Plugin::Cycle;
10
775e96e0 11__PACKAGE__->config(
12 TEMPLATE_EXTENSION => '.tt2',
7e8a7295 13 WRAPPER => 'wrapper.tt2',
16bdb8df 14 subinclude_plugin => 'SubRequest',
775e96e0 15);
16
1f9a47c2 17use Template::Stash;
18
19# define list method to flatten arrayrefs
20$Template::Stash::LIST_OPS->{ to_path } = sub {
21 return join('%2F', shift->flatten, @_);
22};
23
775e96e0 24__PACKAGE__->meta->make_immutable(inline_constructor => 0);
25
26__END__
27
d3feefcf 28=head1 NAME
29
775e96e0 30Gitalist::View::Default - HTML View
d3feefcf 31
32=head1 DESCRIPTION
33
775e96e0 34HTML View.
d3feefcf 35
775e96e0 36=head1 AUTHORS
d3feefcf 37
775e96e0 38See L<Gitalist> for authors.
d3feefcf 39
40=head1 LICENSE
41
775e96e0 42See L<Gitalist> for the license.
d3feefcf 43
44=cut