package Dancer2::Plugin::PluginWithImport; # ABSTRACT: a plugin that implement its own import method =head1 DESCRIPTION In order to demonstrate that Dancer2::Plugin won't loose the original import method of the plugin. =cut use strict; use warnings; use Dancer2::Plugin; my $_stuff = {}; sub stuff {$_stuff} $_stuff->{ __PACKAGE__, } = 'imported'; register dancer_plugin_with_import_keyword => sub { 'dancer_plugin_with_import_keyword'; }; register_plugin; 1;