Catalyst::Plugin::ChainedURI - Simple way to get an URL to an action from chained catalyst controller
version 0.003
# In the Root controller, for example: sub base :Chained('/') :PathPart('') :CaptureArgs(1) :StashArg('language') { my ( $c, $language ) = @_; ... $c->stash->{language} = $language; ... } sub othercapture :Chained('base') :PathPart('') :CaptureArgs(1) { ... } sub final :Chained('othercapture') :PathPart('') :Args(1) { ... } # Somewhere my $uri = $c->chained_uri('Root','final',$othercapture_capturearg,$final_arg); # Usage hints $c->stash->{u} = sub { $c->chained_uri(@_) }; # for getting [% u(...) %]
TODO
IRC
Join #catalyst on irc.perl.org and ask for Getty.
Repository
http://github.com/Getty/p5-catalyst-plugin-chaineduri Pull request and additional contributors are welcome
Issue Tracker
http://github.com/Getty/p5-catalyst-plugin-chaineduri/issues
Torsten Raudssus <torsten@raudss.us> http://raudss.us/
This software is copyright (c) 2011 by Raudssus Social Software.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Catalyst::Plugin::ChainedURI, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catalyst::Plugin::ChainedURI
CPAN shell
perl -MCPAN -e shell install Catalyst::Plugin::ChainedURI
For more information on module installation, please visit the detailed CPAN module installation guide.