blib/lib/AxKit/XSP/IfParam.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: IfParam.pm,v 1.1.1.1 2001/06/07 15:40:36 matt Exp $
2  
3 package AxKit::XSP::IfParam;
4  
5 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 0 ▶use Apache::AxKit::Language::XSP;
Subroutine BEGIN: called CC=1 SCAR=2.6
7  
8 use vars qw/@ISA $NS $VERSION/;
9  
10 @ISA = ('Apache::AxKit::Language::XSP');
11 $NS = 'http://axkit.org/NS/xsp/if-param/v1';
12  
13 $VERSION = "1.4";
14  
15 sub parse_start {
16 my ($e, $tag) = @_;
17  
18 $e->manage_text(0);
19 return 'if ($cgi->param(q|' . $tag . '|)) {';
20 }
21  
22 sub parse_end {
23 # compat only
24 return '}';
25 }
26  
27 1;
28
29 __END__
↑ Summary