GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Router::Simple::SubMapper(3) User Contributed Perl Documentation Router::Simple::SubMapper(3)

Router::Simple::SubMapper - submapper

    use Router::Simple;

    my $router = Router::Simple->new();
    my $s = $router->submapper('/entry/{id}', {controller => 'Entry'});
    $s->connect('/edit' => {action => 'edit'})
      ->connect('/show' => {action => 'show'});

Router::Simple::SubMapper is sub-mapper for Router::Simple. This class provides shorthand to create routes, that have common parts.

my $submapper = $router->submapper(%args);
Do not call this method directly.You should create new instance from $router->submapper(%args).
$submapper->connect(@args)
This method creates new route to parent $router with @args and arguments of ->submapper().

This method returns $submapper itself for method-chain.

$submapper->submapper(%args)
submapper() can be called recursively to build nested routes.

This method returns $submapper itself for method-chain.

Router::Simple
2022-04-07 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.