« blib/lib/auto/share/dist/Dist-Zilla-MintingProfile-FB11/profiles/default/skel/lib/DISTNAME/Builder.pm
↑ Summary
blib/lib/auto/share/module/Dist-Zilla-MintingProfile-FB11/FB11X/FB11X.pm »
| 1 | package {{ $name }}; | ||
| 2 | {{ @bits = split(/::/, $name); $basename = $bits[-1] ; '' | ||
| 3 | }} | ||
| 4 | use v5.20; | ||
| 5 | use Moose; | ||
| 6 | use namespace::autoclean; | ||
| 7 | |||
| 8 | BEGIN { extends 'Catalyst::Controller'; }; | ||
| 9 | with 'OpusVL::FB11::RolesFor::Controller::GUI'; | ||
| 10 | |||
| 11 | # ABSTRACT: Swell new controller for reasons | ||
| 12 | our $VERSION = '0'; | ||
| 13 | |||
| 14 | __PACKAGE__->config | ||
| 15 | ( | ||
| 16 | # The title of the top-level menu. Controllers with the same name go under the same menu. | ||
| 17 | fb11_name => '{{ @dnbits = split(/-/, $dist->name) ; $dnbits[-1] }}', | ||
| 18 | # Choose a Font Awesome icon and drop the fa_ for the main menu icon | ||
| 19 | fb11_icon => 'asterisk', | ||
| 20 | # Used by File::ShareDir to find your templates | ||
| 21 | fb11_myclass => '{{$dist->name =~ s/-/::/gr}}', | ||
| 22 | # TODO: What is this for? | ||
| 23 | fb11_shared_module => '{{ $basename }}', | ||
| 24 | # | ||
| 25 | fb11_method_group => '{{ $basename }}', | ||
| 26 | ); | ||
| 27 | |||
| 28 | #has_forms ( | ||
| 29 | # {{ lc $basename}}_form => '{{$basename}}', | ||
| 30 | # bar_form => '+A::FB11X::B::Form::Bar', | ||
| 31 | #); | ||
| 32 | |||
| 33 | #sub index | ||
| 34 | # :Local | ||
| 35 | # :FB11Feature('Read {{ $basename }}') | ||
| 36 | # :NavigationName('{{ $basename }} List') | ||
| 37 | #{ | ||
| 38 | # my ($self, $c) = @_; | ||
| 39 | # $c->stash({{lc $basename}}s => [$c->model('{{$bits[0]}}DB::{{ $basename }}')->all]); | ||
| 40 | #} | ||
| 41 | |||
| 42 | 1; |