If I append an appname => 'A' to the use Dancer2 directive in MyHook, I can get the hooks registered in app A, and likewise with app B, but I'd like to find a way to get the hooks registered in both apps.package A; use Dancer2 appname => 'A'; use MyHook; ... package B; use Dancer2 appname => 'B'; use MyHook; ... package MyHook; use Dancer2; hook before => sub { print "hello\n"; };
Thoughts?
In reply to Dancer2 hooks and perl modules by clemep8
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |