diff options
author | dakkar <dakkar@thenautilus.net> | 2009-04-19 15:40:31 +0200 |
---|---|---|
committer | dakkar <dakkar@thenautilus.net> | 2009-04-19 15:40:31 +0200 |
commit | 65e68ab4d03131e4193595c2b8fb215ba3735ed5 (patch) | |
tree | d8f03490dee5a3cfcf8e689292c9a54e4841dd5b /lib/Tree | |
parent | clarified docs on factories (diff) | |
download | Tree-Transform-XSLTish-65e68ab4d03131e4193595c2b8fb215ba3735ed5.tar.gz Tree-Transform-XSLTish-65e68ab4d03131e4193595c2b8fb215ba3735ed5.tar.bz2 Tree-Transform-XSLTish-65e68ab4d03131e4193595c2b8fb215ba3735ed5.zip |
doc about importing
Diffstat (limited to 'lib/Tree')
-rw-r--r-- | lib/Tree/Transform/XSLTish.pm | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/Tree/Transform/XSLTish.pm b/lib/Tree/Transform/XSLTish.pm index 3dfb430..4c29afa 100644 --- a/lib/Tree/Transform/XSLTish.pm +++ b/lib/Tree/Transform/XSLTish.pm @@ -231,6 +231,10 @@ This function declares that the L<Tree::Transform::XSLTish::Transformer> object returned by L</new> should use this class to build its XPath engine. +This function is not exported by default: you have to use the module as: + + use Tree::Transform::XSLTish ':engine'; + =head2 C<engine_factory> engine_factory { My::XPath::Engine->new(params=>$whatever) }; @@ -242,6 +246,10 @@ should call the passed code-ref to get its engine. C<engine_class $classname> is equivalent to C<engine_factory { $classname->new }>. +This function is not exported by default: you have to use the module as: + + use Tree::Transform::XSLTish ':engine'; + =head2 C<new> Returns a L<Tree::Transform::XSLTish::Transformer> for the rules @@ -258,6 +266,11 @@ Engine factories are inherited, too, so you can extend a rules package without re-specifying the engine (you can, of course, override this and specify another one). +=head1 IMPORTING + +This module uses L<Sub::Exporter>, see that module's documentation for +things like renaming the imports. + =head1 AUTHOR Gianni Ceccarelli <dakkar@thenautilus.net> |