| 1 | package Kwiki; | ||||||||||
| 2 | 7 | ▶ | use Spoon 0.22 -Base; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 7 | ▶ | our $VERSION = '0.39'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | |||||||||||
| 5 | 7 | const config_class => 'Kwiki::Config'; | |||||||||
| 6 | |||||||||||
| 7 | 0 | ▶ | sub process { | ||||||||
|
Subroutine
process: not called CC=4 SCAR=30.0
Pod
undocumented
| |||||||||||
| 8 | 0 | my $hub = $self->load_hub(@_); | |||||||||
| 9 | 0 | $hub->registry->load; | |||||||||
| 10 | 0 | $hub->add_hooks; | |||||||||
| 11 | 0 | $hub->pre_process; | |||||||||
| 12 | 0 | my $html = $hub->process; | |||||||||
| 13 | 0 | ▶ | if (defined $html) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 14 | 0 | $hub->headers->print; | |||||||||
| 15 | 0 | $self->utf8_encode($html); | |||||||||
| 16 | # With mod_perl < 1.27 and Perl >= 5.8.0, STDOUT does not get | ||||||||||
| 17 | # tied to Apache.pm properly. | ||||||||||
| 18 | exists $ENV{MOD_PERL} | ||||||||||
| 19 | 0 | ▶ | ? Apache->request->print($html) | ||||||||
|
Branch: 1 branch
| |||||||||||
| 20 | : print $html; | ||||||||||
| 21 | } | ||||||||||
| 22 | 0 | ▶ | close STDOUT unless $self->using_debug; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 23 | 0 | $hub->post_process; | |||||||||
| 24 | 0 | return $self; | |||||||||
| 25 | } | ||||||||||
| 26 | |||||||||||
| 27 | 7 | __DATA__ | |||||||||