Skip to content

dim0xff/p5-CatalystX-OrderedActions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NAME

CatalystX::OrderedActions - "correct" actions matching order

SYNOPSIS

package MyApp;
use Catalyst qw(+CatalystX::OrderedActions);


package MyApp::Controller::Resource;

use base qw(Catalyst::Controller);
use Moose;
with 'CatalystX::TraitFor::Controller::OrderedActions';

sub show    : GET     Path('/res') Args(1) { ... }
sub modify  :         Path('/res') Args(1) { ... }
sub options : OPTIONS Path('/res') Args(1) { ... }

DESCRIPTION

This role tries to add actions matching order based on priorities into Path and Chained dispatch types.

MATCHING PRIORITY

Path and Chained actions should respect addition matching logic.

Dispatcher should match path to action with some priority (matching order).

Each matching order position should depends on Args and fact of existing addition matching (in group, like SQL ORDER BY by several fields).

Path

...

Chained

...

SEE ALSO

For discussion you could refer to github pull request #87.

AUTHOR

Dmitry "dim0xff" Latin <[email protected]>

COPYRIGHT AND LICENSE

This software is copyright (c) 2015 by Dmitry Latin.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

About

"Correct" actions matching order

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages