Name : perl-ActionExporter
| |
Version : 0.02
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp154.9.1
| Date : 2023-01-27 17:13:57
|
Group : Development/Libraries/Perl
| Source RPM : perl-ActionExporter-0.02-lp154.9.1.src.rpm
|
Size : 0.01 MB
| |
Packager : https://www_suse_com/
| |
Summary : Extends Exporter with the export_action() function, for use with the GCT[cut]
|
Description :
Extends Exporter with the export_action() function. Calling ActionExporter::export_action(\"foo\") exports the two subs \'foo_start\' and \'foo_end\' under a export tag \'foo\'. This is usefull for creating an action Library as follows:
package MyActionsLibrary; require ActionExporter; our AATTISA = (\"ActionExporter\");
ActionExporter::export_action(\"foo\"); sub foo_start{ return \'\';} sub foo_end{ return \'\';}
ActionExporter::export_action(\"bar\"); sub bar_start{ return \'\';} sub bar_end{ return \'\';}
A taglib created using using ActionTaglib can then use the \'foo\' actions by simply adding \'use MyActionLibrary qw(:foo);\', for example:
package MyTaglib; use GCT::XSP::ActionTaglib; AATTISA = qw(use GCT::XSP::ActionTaglib;); our $tagactions;
use MyActionLibrary qw(:foo); $tagactions->{tag1}=[{ -action => \'foo\' }];
Actions exported using the export_action() command are also added to the \'allactions\' export tag so a taglib could import all the actions from an action library with:
use MyActionLibrary qw(:allactions); $tagactions->{tag1}=[{ -action => \'foo\' }]; $tagactions->{tag2}=[{ -action => \'bar\' }];
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-A/15.4/noarch |