Query: dancer::hook
OS: debian
Section: 3pm
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
Dancer::Hook(3pm) User Contributed Perl Documentation Dancer::Hook(3pm)NAMEDancer::Hook - Class to manipulate hooks with DancerDESCRIPTIONManipulate hooks with DancerSYNOPSIS# inside a plugin use Dancer::Hook; Dancer::Hook->register_hooks_name(qw/before_auth after_auth/);METHODSregister_hook ($hook_name, [$properties], $code) hook 'before', {apps => ['main']}, sub {...}; hook 'before' => sub {...}; Attaches a hook at some point, with a possible list of properties. Currently supported properties: apps an array reference containing apps name register_hooks_name Add a new hook name, so application developers can insert some code at this point. package My::Dancer::Plugin; Dancer::Hook->instance->register_hooks_name(qw/before_auth after_auth/); hook_is_registered Test if a hook with this name has already been registered. execute_hooks Execute a list of hooks for some position get_hooks_for Returns the list of coderef registered for a given positionAUTHORSThis module has been written by Alexis Sukrieh and others.LICENSEThis module is free software and is published under the same terms as Perl itself. perl v5.14.2 2012-03-31 Dancer::Hook(3pm)
Related Man Pages |
---|
dancer::cookies(3pm) - debian |
dancer::logger(3pm) - debian |
dancer::request::upload(3pm) - debian |
dancer::session::memcached(3pm) - debian |
dancer::timer(3pm) - debian |
Similar Topics in the Unix Linux Community |
---|
Is UNIX an open source OS ? |
One instance of comparing grep and awk |
Weird 'find' results |
My first PERL incarnation... Audio Oscillograph |