4 Mar
2013
4 Mar
'13
10:43 a.m.
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;