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