Reactor/Preprocessor.pm untested

filter: Statementstmt 0.0% 0 / 16 Branchbran n/a Conditioncond 0.0% 0 / 3 Subroutinesub 0.0% 0 / 6 Podpod 0.0% 0 / 4 totaltotal 0.0% 0 / 29 CC 1 SCAR 6.9
CC
1
Cov
0%
new
2.0
load_file
2.0
load_file
2.0
CRAP 2.0
1 ##############################################################################
2 ##
3 ## Web::Reactor application machinery
4 ## 2013-2016 (c) Vladi Belperchinov-Shabanski "Cade"
5 ## <cade@bis.bg> <cade@biscom.net> <cade@cpan.org>
6 ##
7 ## LICENSE: GPLv2
8 ##
9 ##############################################################################
10 package Web::Reactor::Preprocessor;
11 use strict;
12  
13 use parent 'Web::Reactor::Base';
14
15 sub new
16 {
17 my $class = shift;
18 my %env = @_;
19
20 $class = ref( $class ) || $class;
21 my $self = {
22 'ENV' => \%env,
23 };
24 bless $self, $class;
25 # rcd_log( "debug: rcd_rec:$self created" );
26
27 return $self;
28 }
29  
30 sub load_file
31 {
32 my $self = shift;
33  
34 }
35  
36 # constructs real filesystem/storage file name and load the page_text
37 # args:
38 # $page_name -- page name, it should be sanitized and load from file,
39 # storage, or sth.
40 #
41 # returns:
42 # page text
43 sub load_file { die "Web::Reactor::Preprocessor::*::load_file() is not implemented!"; }
44  
45 # preprocesses page text to include sub-pages or execute actions inside
46 # args:
47 # $page_text -- page text, already load with load_file()
48 #
49 # returns:
50 # preprocessed page text
51 sub process { die "Web::Reactor::Preprocessor::*::process() is not implemented!"; }
52  
53 #sub DESTROY
54 #{
55 # my $self = shift;
56 #
57 # print "DESTROY: $self\n";
58 #}
59  
60 ##############################################################################
61 1;
62 ###EOF########################################################################