Apache-XPP

 view release on metacpan or  search on metacpan

man/xpptagtut.pod  view on Meta::CPAN


=head2 Subclassing Apache::XPP::PreParse

Subclassing Apache::XPP::PreParse to create a custom tags involves two
basic steps. The first thing you have to do it create a class variable
called C<@parsers> that contains the names of all the parser methods you're
creating to handle your custom tags. Each tag will have exactly one parser
method associated with it. The second step is to implement those parser methods
for your custom tags.

The beginning of our Apache::XPP::PreParse subclass looks like this:

  package My::XPP::PreParse;

  use strict;
  use Apache::XPP::PreParse;

  use vars qw( @ISA @parsers );
  @ISA = qw( Apache::XPP::PreParse );

  @parsers = (



( run in 0.477 second using v1.01-cache-2.11-cpan-64827b87656 )