« Dist/Zilla/MintingProfile/AppKitX.pm
↑ Summary
auto/share/dist/Dist-Zilla-MintingProfile-AppKitX/profiles/default/skel/t/lib/TestApp.pm »
| 1 | package {{ $name }}; | ||
| 2 | |||
| 3 | use Moose::Role; | ||
| 4 | use CatalystX::InjectComponent; | ||
| 5 | use namespace::autoclean; | ||
| 6 | |||
| 7 | with 'OpusVL::AppKit::RolesFor::Plugin'; | ||
| 8 | |||
| 9 | our $VERSION = '0.01'; | ||
| 10 | {{ | ||
| 11 | ($controller) = ($name =~ /::([^:]+)$/); '' | ||
| 12 | }} | ||
| 13 | after 'setup_components' => sub { | ||
| 14 | my $class = shift; | ||
| 15 | |||
| 16 | $class->add_paths(__PACKAGE__); | ||
| 17 | |||
| 18 | # .. inject your components here .. | ||
| 19 | CatalystX::InjectComponent->inject( | ||
| 20 | into => $class, | ||
| 21 | component => '{{ $name }}::Controller::{{ $controller }}', | ||
| 22 | as => 'Controller::{{ $controller }}' | ||
| 23 | ); | ||
| 24 | }; | ||
| 25 | |||
| 26 | 1; | ||
| 27 | |||
| 28 | =head1 NAME | ||
| 29 | |||
| 30 | {{ $name }} - A brand new AppKitX component | ||
| 31 | |||
| 32 | =head1 DESCRIPTION | ||
| 33 | |||
| 34 | Frobnicates the whirligigs in a modular and reusable pattern | ||
| 35 | |||
| 36 | =head1 COPYRIGHT and LICENSE | ||
| 37 | |||
| 38 | Copyright (C) 2015 OpusVL | ||
| 39 | |||
| 40 | This software is licensed according to the "IP Assignment Schedule" provided with the development project. |