| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package Kelp::Module::Config::Less; |
|
2
|
2
|
|
|
2
|
|
1193
|
use Kelp::Base 'Kelp::Module::Config'; |
|
|
2
|
|
|
|
|
4
|
|
|
|
2
|
|
|
|
|
11
|
|
|
3
|
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
# Kelp::Less applications start with no modules or middleware, but it surely |
|
5
|
|
|
|
|
|
|
# can be used for normal applications as well. |
|
6
|
|
|
|
|
|
|
attr data => sub { |
|
7
|
|
|
|
|
|
|
my $self = shift; |
|
8
|
|
|
|
|
|
|
my $hash = $self->SUPER::data(); |
|
9
|
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
$hash->{modules} = []; |
|
11
|
|
|
|
|
|
|
$hash->{middleware} = []; |
|
12
|
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
return $hash; |
|
14
|
|
|
|
|
|
|
}; |
|
15
|
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|