line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package App::Dapper::Defaults; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
=head1 NAME |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
App::Dapper::Defaults - YAML project file defaults. |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
=head1 DESCRIPTION |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
The configuration elemements defined here are used for all projects that Dapper |
10
|
|
|
|
|
|
|
interacts with. The defaults defined here are baseline defaults that may be |
11
|
|
|
|
|
|
|
overridden in a project-specific YAML file. |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
=cut |
14
|
|
|
|
|
|
|
|
15
|
2
|
|
|
2
|
|
14
|
use utf8; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
18
|
|
16
|
2
|
|
|
2
|
|
79
|
use open ':std', ':encoding(UTF-8)'; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
18
|
|
17
|
2
|
|
|
2
|
|
1369
|
use 5.8.0; |
|
2
|
|
|
|
|
8
|
|
|
2
|
|
|
|
|
112
|
|
18
|
2
|
|
|
2
|
|
13
|
use strict; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
91
|
|
19
|
2
|
|
|
2
|
|
11
|
use warnings FATAL => 'all'; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
135
|
|
20
|
|
|
|
|
|
|
|
21
|
2
|
|
|
2
|
|
13
|
use YAML::Tiny qw(Load); |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
570
|
|
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
my $defaults = <<'DEFAULTS'; |
24
|
|
|
|
|
|
|
urlpattern : /:category/:year/:month/:slug/ |
25
|
|
|
|
|
|
|
source : _source/ |
26
|
|
|
|
|
|
|
output : _output/ |
27
|
|
|
|
|
|
|
layout : _layout/ |
28
|
|
|
|
|
|
|
ignore : |
29
|
|
|
|
|
|
|
- "^\." |
30
|
|
|
|
|
|
|
- "^_" |
31
|
|
|
|
|
|
|
- "^dapper$" |
32
|
|
|
|
|
|
|
extension : .html |
33
|
|
|
|
|
|
|
DEFAULTS |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=head2 get_defaults |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
Loads the defaults specified locally in this module in the form of YAML |
38
|
|
|
|
|
|
|
and returns the resulting perl data structure. |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=cut |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
sub get_defaults { |
43
|
1
|
|
|
1
|
1
|
6
|
return Load($defaults); |
44
|
|
|
|
|
|
|
} |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
1; |