Debian Codegraph @

t/lib/Dancer2/Plugin/PluginWithImport.pm

raw
1 package Dancer2::Plugin::PluginWithImport;
2 # ABSTRACT: a plugin that implement its own import method
3
4 =head1 DESCRIPTION
5
6 In order to demonstrate that Dancer2::Plugin won't loose the original
7 import method of the plugin.
8
9 =cut
10
11 use strict;
12 use warnings;
13
14 use Dancer2::Plugin;
15
16 my $_stuff = {};
17 sub stuff {$_stuff}
18
19 $_stuff->{ __PACKAGE__, } = 'imported';
20
21 register dancer_plugin_with_import_keyword => sub {
22 'dancer_plugin_with_import_keyword';
23 };
24
25 register_plugin;
26
27 1;