[dancer-users] Is it necessary to "use Plugin" in every module where I want to use the plugin's new keywords?
Lars Dɪᴇᴄᴋᴏᴡ 迪拉斯
daxim at cpan.org
Mon Mar 4 10:43:16 GMT 2013
> then you get its keywords everywhere where we just "use Dancer"?
You can already make it so yourself with the CPAN modules
<http://p3rl.org/Toolkit>, <http://p3rl.org/ToolSet> or
<http://p3rl.org/perl5> if you want it. This functionality is not
something that Dancer needs to be burdened with.
package MyWebApp;
use MySuperDancerWithLotsOfExports;
ajax '/check_for_update' => sub { ... };
dance;
----
package MySuperDancerWithLotsOfExports;
use parent 'ToolSet';
ToolSet->export(
'Dancer' => undef,
'Dancer::Plugin::Ajax' => undef,
);
1;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://lists.preshweb.co.uk/pipermail/dancer-users/attachments/20130304/b61a41d5/attachment.pgp>
More information about the dancer-users
mailing list