https://github.com/dnmfarrell/catalyst-plugin-actionpaths
Get Catalyst actions with example paths included
https://github.com/dnmfarrell/catalyst-plugin-actionpaths
Last synced: about 2 months ago
JSON representation
Get Catalyst actions with example paths included
- Host: GitHub
- URL: https://github.com/dnmfarrell/catalyst-plugin-actionpaths
- Owner: dnmfarrell
- License: other
- Created: 2015-06-04T21:14:39.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-06-05T14:38:04.000Z (about 11 years ago)
- Last Synced: 2025-01-16T16:49:29.677Z (over 1 year ago)
- Language: Perl
- Homepage:
- Size: 117 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.pod
- License: LICENSE
Awesome Lists containing this project
README
=pod
=encoding UTF-8
=head1 NAME
Catalyst::Plugin::ActionPaths - get Catalyst actions with example paths included!
=head1 VERSION
version 0.01
=head1 DESCRIPTION
This is an early-release plugin for Catalyst. It adds the method C to the Catalyst context object.
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. F
use Catalyst 'ActionPaths';
=head1 METHODS
=head2 get_action_paths
Returns an arrayref of C objects, with a path attribute added. The path is an example path for the action, e.g.:
my $actions = $c->get_action_paths;
print $actions->[0]{path}; # /some/*/path/*
=head1 AUTHOR
David Farrell
=head1 COPYRIGHT AND LICENSE
This software is Copyright (c) 2015 by David Farrell.
This is free software, licensed under:
The (two-clause) FreeBSD License
=cut