| 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__ | ||