lib/App/Dapper/Defaults.pm

filter: Statementstmt 100% 17 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 100% 1 / 1 totaltotal 100% 24 / 24 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« lib/App/Dapper/Filters.pm ↑ Summary lib/App/Dapper/Theme/Business.pm »
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 elements 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 190 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
16 190 ▶use 5.010;
Subroutine BEGIN: called CC=1 SCAR=0.0
17 190 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
18 190 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
19  
20 190 ▶use YAML::PP qw(Load);
Subroutine BEGIN: called CC=1 SCAR=0.0
21  
22 190 my $defaults = <<'DEFAULTS';
23 urlpattern : /:category/:year/:month/:slug/
24 source : _source/
25 output : _output/
26 layout : _layout/
27 data_dir : _data
28 ignore :
29 - ^\.
30 - ^_
31 - ^dapper$
32 extension : .html
33 markdown_twins : true
34 llms_txt : true
35 sitemap : true
36 DEFAULTS
37  
38 =head2 get_defaults
39  
40 Loads the defaults specified locally in this module in the form of YAML
41 and returns the resulting perl data structure.
42  
43 =cut
44  
45 172 ▶sub get_defaults {
Subroutine get_defaults: called CC=1 SCAR=0.0
Pod documented
46 172 return Load($defaults);
47 }
48  
49 190 1;
« lib/App/Dapper/Filters.pm ↑ Summary lib/App/Dapper/Theme/Business.pm »