blib/lib/AxKit/XSP/Param.pm

filter: Statementstmt 66.6% 4 / 6 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 75.0% 6 / 8 CC 1 SCAR 1.4
CC
1
Cov
67%
BEGIN
1.3
BEGIN
1.0
CRAP 1.1
↑ Summary
1 # $Id: Param.pm,v 1.7 2001/06/04 10:08:43 matt Exp $
2  
3 package AxKit::XSP::Param;
4 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 0 ▶use Apache::AxKit::Language::XSP;
Subroutine BEGIN: called CC=1 SCAR=2.6
6  
7 use vars qw/@ISA $NS $VERSION/;
8  
9 @ISA = ('Apache::AxKit::Language::XSP');
10 $NS = 'http://axkit.org/NS/xsp/param/v1';
11  
12 $VERSION = "1.4";
13  
14 ## Taglib subs
15  
16 # NONE! ;-)
17  
18 ## Parser subs
19  
20 sub parse_start {
21 my ($e, $tag, %attribs) = @_;
22 #warn "Checking: $tag\n";
23  
24 $e->start_expr($tag);
25 $e->append_to_script('$cgi->param(q|' . $tag . '|)');
26 $e->end_expr();
27 return '';
28 }
29  
30 sub parse_char {
31 # compat only
32 }
33  
34  
35 sub parse_end {
36 # compat only
37 }
38  
39 sub parse_comment {
40 # compat only
41 }
42  
43 sub parse_final {
44 # compat only
45 }
46  
47 1;
48
49 __END__
↑ Summary