TaglibHelper is a Perl module to make it easier to write a taglib.
SYNOPSIS
package My::Taglib;
use AxKit2::XSP::TaglibHelper;
@ISA = qw( AxKit2::XSP::TaglibHelper );
## Edit $NS to be the namespace URI you want
$NS = 'http://apache.org/xsp/testtaglib/v1';
## Edit @EXPORT_TAGLIB as needed
@EXPORT_TAGLIB = (
'func1($arg1)',
'func2($arg1,$arg2)',
'func3($arg1,$arg2;$optarg)',
'func4($arg1,*treearg)',
'func4($arg1,*treearg):listtag=mylist:itemtag=item',
);
use strict;
sub func1 {
my ( $arg1 ) = @_ ;
...
return $scalar_or_reference;
}
...
1;
the functions with the same names as listed in @EXPORT_TAGLIB.
Product's homepage
Requirements:
· Perl