Rand Stats

Router::Right

zef:knarkhov

Advanced URL router in Raku

Advanced, framework-agnostic URL routing engine for web applications in Raku programming language:

Synopsys

use Router::Right;

my $route = Router::Right.new;

$route.add(
    :name( 'dynaroute' ),
    :path( 'GET /dynamic/{id:<[\d]>+}/{tag}/{item}' ),
    :payload( 'Dynamic#Route' ),
);

if (my %m = $route.match(%*ENV<REQUEST_URI> || q{})) {
    %m.gist.say;
}
else {
    $route.error.say;
}

Methods

Examples

Wiki pages

Full documentation is available at Router::Right wiki pages.

License

Router::Right module is free and open source software, so you can redistribute it and/or modify it under the terms of the Artistic License 2.0.

Author

Please contact me via Matrix, LinkedIn or narkhov.pro.

Credits

This module was inspired by origin Perl5 Router::Right developed by @mla. Check it out at Github.