|
Apache::XPP::PreParse - XPP TAG Parser |
Apache::XPP::PreParse - XPP TAG Parser
use Apache::XPP::PreParse;
$preparsers = Apache::XPP::PreParse->parsers;
foreach (@{ $preparsers }) {
$preparsers->( \$text );
}
Nothing
Nothing
Apache::XPP::PreParse handles pre parsing of an xpp page to convert 'tags' into valid XPML. Tags are meant as a shortcut for code that might otherwise be burdensome or confusing for and xpml author, such as ref checking before calling a method: <xpp method=``cities_popup_menu'' obj=``$app''> might be converted to: <?xpp if (ref($app)) { print $app->cities_popup_menu; } ?>.
parsers ( )add_parser ( \&parser )parse_tag ( $tag )dtag ( \$text, $tag, $subref )parse_stagstag ( \$text, $match, \@replace_rules )parser_xppcommentEx:
<XPPCOMMENT>
<title><?= $obj->title() ?></title>
</XPPCOMMENT>
parser_xppcacheEx: <XPPCACHE name=``mycache'' group=``cachegroup'' store=``File'' expire=``Duration, 10s''> .... </XPPCACHE>
parser_appmethodEx: <XPP app app=``$obj'' attr=``bleh'' as=``$var''> <XPP app app=``$obj'' attr=``bleh''>
parser_printEx: <XPP print obj=``$obj'' attr=``bleh''>
parser_xppxincludeEx: <XPP xinclude filename=``include.xmi'' options=``$obj1, $obj2''>
parser_xppforeachEx: <XPPFOREACH array=``@ary'' as=``$val''> <XPPFOREACH array=``@ary''>
$Log: PreParse.pm,v $ Revision 1.17 2000/09/14 23:01:30 dougw Fixed stag pod.
Revision 1.16 2000/09/13 00:32:04 dougw Pod for tag methods.
Revision 1.15 2000/09/11 20:15:33 david Sent AUTOLOAD to Apache::XPP::AUTOLOAD.
Revision 1.14 2000/09/07 19:03:19 dougw over fix
Revision 1.13 2000/09/07 18:48:36 dougw Took out some use vars
Revision 1.12 2000/09/07 18:45:42 dougw Version Update.
Revision 1.11 2000/09/07 00:05:38 dougw POD fixes.
perl(1). tagtut
None
...
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>
|
Apache::XPP::PreParse - XPP TAG Parser |