| 1 | package Kelp::Module::Config::Less; | ||
| 2 | 2 | ▶ | use Kelp::Base 'Kelp::Module::Config'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | |||
| 4 | # Kelp::Less applications start with no modules or middleware, but it surely | ||
| 5 | # can be used for normal applications as well. | ||
| 6 | 2 | ▶ | attr data => sub { |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 7 | 2 | my $self = shift; | |
| 8 | 2 | my $hash = $self->SUPER::data(); | |
| 9 | |||
| 10 | 2 | $hash->{modules} = []; | |
| 11 | 2 | $hash->{middleware} = []; | |
| 12 | |||
| 13 | 2 | return $hash; | |
| 14 | 2 | }; | |
| 15 | |||
| 16 | 2 | 1; | |
| 17 | |||
| 18 | __END__ | ||
| 19 | |||
| 20 | =pod | ||
| 21 | |||
| 22 | =head1 NAME | ||
| 23 | |||
| 24 | Kelp::Module::Config::Less - Configuration with less defaults | ||
| 25 | |||
| 26 | =head1 DESCRIPTION | ||
| 27 | |||
| 28 | Light config with no modules or middleware by default. Good if you want less | ||
| 29 | defaults and used by L<Kelp::Less>. | ||
| 30 | |||
| 31 | =head1 SEE ALSO | ||
| 32 | |||
| 33 | L<Kelp::Module::Config> | ||
| 34 | |||
| 35 | =cut | ||
| 36 | |||