Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Router::Simple::SubMapUser3Contributed Perl DocumeRouter::Simple::SubMapper(3)

NAME
       Router::Simple::SubMapper - submapper

SYNOPSIS
	   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'});

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

METHODS
       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.

SEE ALSO
       Router::Simple

perl v5.32.1			  2021-02-28	  Router::Simple::SubMapper(3)

NAME | SYNOPSIS | DESCRIPTION | METHODS | SEE ALSO

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Router::Simple::SubMapper&sektion=3&manpath=FreeBSD+13.0-RELEASE+and+Ports>

home | help