blib/lib/Statocles/Page/Plain.pm

filter: Statementstmt 100% 8 / 8 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod 100% 1 / 1 totaltotal 100% 11 / 11 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
content
1.0
CRAP 1.0
« blib/lib/Statocles/Link/Tree.pm ↑ Summary blib/lib/Statocles/Plugin.pm »
1 package Statocles::Page::Plain;
2 52 our $VERSION = '0.099';
3 # ABSTRACT: A plain page (with templates)
4  
5 52 ▶use Statocles::Base 'Class';
Subroutine BEGIN: called CC=1 SCAR=0.0
6 52 with 'Statocles::Page';
7  
8 #pod =attr content
9 #pod
10 #pod The content of the page, already rendered to HTML.
11 #pod
12 #pod =cut
13  
14 52 has _content => (
15 is => 'ro',
16 isa => Str,
17 required => 1,
18 init_arg => 'content',
19 );
20  
21 #pod =method content
22 #pod
23 #pod my $html = $page->content;
24 #pod
25 #pod Get the content for this page.
26 #pod
27 #pod =cut
28  
29 17 ▶sub content {
Subroutine content: called CC=1 SCAR=0.0
Pod documented
30 17 return $_[0]->_content;
31 }
32  
33 52 1;
34  
35 __END__
« blib/lib/Statocles/Link/Tree.pm ↑ Summary blib/lib/Statocles/Plugin.pm »