| 1 | package Gitalist::View::Default; | ||
| 2 | 8 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 8 | ▶ | use Moose::Autobox; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 8 | ▶ | use namespace::autoclean; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | extends 'Catalyst::View::TT'; | ||
| 7 | with 'Catalyst::View::Component::SubInclude'; | ||
| 8 | |||
| 9 | 8 | ▶ | use Template::Plugin::Cycle; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | |||
| 11 | __PACKAGE__->config( | ||
| 12 | TEMPLATE_EXTENSION => '.tt2', | ||
| 13 | WRAPPER => 'wrapper.tt2', | ||
| 14 | subinclude_plugin => 'SubRequest', | ||
| 15 | render_die => 1, | ||
| 16 | ); | ||
| 17 | |||
| 18 | 8 | ▶ | use Template::Stash; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 19 | |||
| 20 | # define list method to flatten arrayrefs | ||
| 21 | $Template::Stash::LIST_OPS->{ to_path } = sub { | ||
| 22 | my $path = join('%2F', shift->flatten, @_); | ||
| 23 | $path =~ s{/}{%2F}g; | ||
| 24 | return $path; | ||
| 25 | }; | ||
| 26 | |||
| 27 | __PACKAGE__->meta->make_immutable(inline_constructor => 0); | ||
| 28 | |||
| 29 | __END__ | ||