Catalyst::Plugin::ActionPaths - get Catalyst actions with example paths included!
version 0.01
This is an early-release plugin for Catalyst. It adds the method get_action_paths to the Catalyst context object.
get_action_paths
This plugin makes it easier to retrieve every loaded action path and chained path in your Catalyst application, usually for testing purposes.
To use the plugin, just install it and append the plugin name in your application class e.g. lib/MyApp.pm
use Catalyst 'ActionPaths';
Returns an arrayref of Catalyst::Actions objects, with a path attribute added. The path is an example path for the action, e.g.:
Catalyst::Actions
my $actions = $c->get_action_paths; print $actions->[0]{path}; # /some/*/path/*
David Farrell <dfarrell@cpan.org>
This software is Copyright (c) 2015 by David Farrell.
This is free software, licensed under:
The (two-clause) FreeBSD License
To install Catalyst::Plugin::ActionPaths, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catalyst::Plugin::ActionPaths
CPAN shell
perl -MCPAN -e shell install Catalyst::Plugin::ActionPaths
For more information on module installation, please visit the detailed CPAN module installation guide.