in reply to Re^3: Dancer2 hook
in thread Dancer2 hook
This hook works fine, but it doesn't get called when I use the module (Dancer::Plugin::TestHook) somewhere else. That's the problem.package Dancer2::Plugin::TestHook use Dancer2; use Dancer2::Core::Error; hook after_error => sub { my $content = shift; $content->{content} .= "hello world"; } 1;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Dancer2 hook
by Anonymous Monk on Aug 13, 2019 at 01:04 UTC | |
by Anonymous Monk on Aug 13, 2019 at 01:13 UTC | |
by Anonymous Monk on Aug 13, 2019 at 02:25 UTC |