|
# ------------- # $Revision: 1.23 $ # $Date: 2000/09/08 22:26:44 $ # ----------------------------------------------------------------------------- =head1 NAME |
use Apache::XPP; my $xpp = Apache::XPP->new( Apache->request ); $xpml->run;
Apache Apache::Constants File::stat FileHandle HTTP::Request HTTP::Date LWP::UserAgent
Nothing
Apache::XPP is an HTML parser which on run time compiles and runs embedded perl code.
$Apache::XPP::main_class$debugAt present there are only 4 levels of debugging : 0 - no debugging (default) 1 - some debugging 2 - verbose debugging 3 - adds some Data::Dumper calls
$debuglines
handler ( $r )include() and xinclude() a global is defined. If you subclass Apache::XPP
replace the value of the global $Apache::XPP::main_class with your class name.
new ( \%params | $filename )All other parameters will be stashed in the xpp object.
preparse ( )parses
method. (The preparse class is returned by the preparseclass method).
parse ( )code attribute
with a subroutine reference which when run (with the run method), will result
in the printing of the xpp page.
run ( @arguments )parse method), passing any arguments supplied to the code.
This should have the effect of printing the xpp page to STDOUT.
returnrun ( @arguments )run with @arguments as specified, catching all output destined for STDOUT, and
returning the results as a string.
load ( $filename )qualify ( $filename )incdir or docroot.
incdir ( )include and xinclude will retrieve source
from by default. See include, xinclude, and load for more documentation on this
process.
docroot ( )include, and xinclude.
r ( )include ( $filename )include $filename;
See the load method for more information
xinclude ( $filename, @options )xinclude $filename;
debug ( $debuglevel [, $debuglines ]N.B. -- at present these flags are global, not per object. Method works as static or dynamic.
$Log: XPP.pm,v $
Revision 1.23 2000/09/08 22:26:44 david
added, changed, revised, and otherwise cleaned up a lot of POD
cleaned up new()
- removed dependence on MD5 (uses conventional checksum)
- folded nearly duplicate header and footer code into a loop
incdir()
- now uses Apache->server_root_relative() instead of $ENV{SERVER_ROOT}
debug()
- new method to manipulate $debug and $debuglines globals
Apache::XPP::Tie class now uses $debug settings of Apache::XPP class
"This would go great with gwack-a-mole!" - Z.B.
Revision 1.22 2000/09/08 00:42:45 dougw Took out rscope stuff.
Revision 1.21 2000/09/07 23:42:23 greg fixed POD
Revision 1.20 2000/09/07 23:30:40 dougw Fixed over.
Revision 1.19 2000/09/07 20:15:54 david
new(), r() - makes previous bug fix less agressive, yet more thorough.
Revision 1.18 2000/09/07 19:49:01 david
r() - fixed peculiar (and elusive) bug where DirectoryIndex accessed pages
(and potentially any page using a subrequest) caused a segmentation fault
with cached pages.
Revision 1.17 2000/09/07 18:48:11 dougw Small update
Revision 1.16 2000/09/07 18:45:14 dougw Version update
Revision 1.15 2000/09/06 23:42:50 dougw Modified POD to be consistent with BingoX
perl(1).
None
precompile
Copyright (c) 2000, Cnation Inc. All Rights Reserved. This module is free software. It may be used, redistributed and/or modified under the terms of the GNU Lesser General Public License as published by the Free Software Foundation.
You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Greg Williams <greg@cnation.com> Doug Weimer <dougw@cnation.com>
|
# ------------- # $Revision: 1.23 $ # $Date: 2000/09/08 22:26:44 $ # ----------------------------------------------------------------------------- =head1 NAME |