| 1 | package {{$name}}; | ||
| 2 | |||
| 3 | # AUTHORITY | ||
| 4 | # VERSION | ||
| 5 | # ABSTRACT: ---insert abstract here--- | ||
| 6 | |||
| 7 | ############################################################################# | ||
| 8 | # Modules | ||
| 9 | |||
| 10 | use sanity; | ||
| 11 | use Moo; | ||
| 12 | use Types::Tiny qw(); | ||
| 13 | |||
| 14 | ### INSERT MODULES HERE ### | ||
| 15 | |||
| 16 | use namespace::clean; | ||
| 17 | no warnings 'uninitialized'; | ||
| 18 | |||
| 19 | ############################################################################# | ||
| 20 | # Attributes | ||
| 21 | |||
| 22 | ### INSERT ATTRS HERE ### | ||
| 23 | |||
| 24 | ############################################################################# | ||
| 25 | # Pre/post-BUILD | ||
| 26 | |||
| 27 | around BUILDARGS => sub { | ||
| 28 | my ($orig, $self) = (shift, shift); | ||
| 29 | my $hash = shift; | ||
| 30 | $hash = { $hash, @_ } unless ref $hash; | ||
| 31 | |||
| 32 | ### INSERT CODE HERE ### | ||
| 33 | |||
| 34 | $orig->($self, $hash); | ||
| 35 | }; | ||
| 36 | |||
| 37 | ############################################################################# | ||
| 38 | # Methods | ||
| 39 | |||
| 40 | ### INSERT CODE HERE ### | ||
| 41 | |||
| 42 | 42; | ||
| 43 | |||
| 44 | __END__ |