Dancer::RPCPlugin::DispatchFromPod - Build dispatch-table from POD
use Dancer::Plugin; use Dancer::RPCPlugin::DispatchFromPod; sub dispatch_call { return dispatch_table_from_pod(%parameters); }
Interface to build a (partial) dispatch table from the special pod-directives in the packages specified and for the optional endpoint specified.
One can specify a sub/method to be used for the RPCPlugin by using the POD directive =for followed by the rpc-protocol supported by this plugin-set. One of jsonrpc, restrpc and xmlrpc.
=for
=for <protocol> <rpc-name> <real-code-name>[ <endpoint>]
The pod-directive must be in the same file the code it refers to is.
Make sure the partial dispatch table for a single endpoint is build in a single pass.
Named:
A (partial) dispatch-table.
(c) MMXV - Abe Timmerman <abeltje@cpan.org>
To install Dancer::Plugin::RPC, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Dancer::Plugin::RPC
CPAN shell
perl -MCPAN -e shell install Dancer::Plugin::RPC
For more information on module installation, please visit the detailed CPAN module installation guide.