| 1 | package {{$name}}; | ||
| 2 | # ABSTRACT: ... | ||
| 3 | |||
| 4 | =head1 SYNOPSIS | ||
| 5 | |||
| 6 | #!/usr/bin/env perl; | ||
| 7 | use common::sense; | ||
| 8 | use {{$name}}; | ||
| 9 | ... | ||
| 10 | |||
| 11 | =head1 DESCRIPTION | ||
| 12 | |||
| 13 | ... | ||
| 14 | |||
| 15 | =cut | ||
| 16 | |||
| 17 | use strict; | ||
| 18 | use utf8; | ||
| 19 | use warnings qw(all); | ||
| 20 | |||
| 21 | # use common::sense; | ||
| 22 | # | ||
| 23 | # use base 'Exporter'; | ||
| 24 | # | ||
| 25 | # our %EXPORT_TAGS = (all => [qw[]]); | ||
| 26 | # our @EXPORT_OK = (@$EXPORT_TAGS{all}); | ||
| 27 | # our @EXPORT = qw(); | ||
| 28 | |||
| 29 | # use Carp qw(carp confess); | ||
| 30 | |||
| 31 | use Moose; | ||
| 32 | # use Moo; | ||
| 33 | # use MooX::Types::MooseLike::Base qw( | ||
| 34 | # AnyOf | ||
| 35 | # ArrayRef | ||
| 36 | # Bool | ||
| 37 | # HashRef | ||
| 38 | # InstanceOf | ||
| 39 | # Int | ||
| 40 | # Num | ||
| 41 | # Object | ||
| 42 | # Str | ||
| 43 | # is_Int | ||
| 44 | # ); | ||
| 45 | |||
| 46 | # with 'Some::Class'; | ||
| 47 | # extends 'Other::Class'; | ||
| 48 | |||
| 49 | # no if ($] >= 5.017010), warnings => 'experimental'; | ||
| 50 | |||
| 51 | # VERSION | ||
| 52 | |||
| 53 | # =attr attribute | ||
| 54 | # | ||
| 55 | # ... | ||
| 56 | # | ||
| 57 | # =cut | ||
| 58 | |||
| 59 | has attribute => (is => 'ro', isa => 'Int', default => sub { 0 }); | ||
| 60 | |||
| 61 | # arount parent_method => sub { | ||
| 62 | # my $name = shift; | ||
| 63 | # my $orig = shift; | ||
| 64 | # my $self = shift; | ||
| 65 | # | ||
| 66 | # $orig->($self => @_); | ||
| 67 | # }; | ||
| 68 | |||
| 69 | =for Pod::Coverage | ||
| 70 | BUILD | ||
| 71 | =cut | ||
| 72 | |||
| 73 | sub BUILD { | ||
| 74 | my ($self) = @_; | ||
| 75 | } | ||
| 76 | |||
| 77 | # =method method($param) | ||
| 78 | # | ||
| 79 | # ... | ||
| 80 | # | ||
| 81 | # =cut | ||
| 82 | |||
| 83 | sub method { | ||
| 84 | my ($self, $param) = @_; | ||
| 85 | } | ||
| 86 | |||
| 87 | =head1 SEE ALSO | ||
| 88 | |||
| 89 | =for :list | ||
| 90 | * L<Moose> | ||
| 91 | * L<Moo> | ||
| 92 | * L<MooX::Types::MooseLike::Base> | ||
| 93 | |||
| 94 | =cut | ||
| 95 | |||
| 96 | no Moose; | ||
| 97 | __PACKAGE__->meta->make_immutable; | ||
| 98 | |||
| 99 | 1; |