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

FreeBSD Manual Pages

  
 
  

home | help
Router::Simple::DeclarUser Contributed Perl DocumentRouter::Simple::Declare(3)

NAME
       Router::Simple::Declare - declarative interface for Router::Simple

SYNOPSIS
	   use Router::Simple::Declare;

	   my $router =	router {
	       connect '/{controller}/{action}/{id}';

	       submapper('/account', {controller => 'Account'})
		   ->connect('/login', {action => 'login'})
		   ->connect('/logout',	{action	=> 'logout'});
	   };
	   $router->match('/entry/show/3');

DESCRIPTION
       Easy way	to declare router object.

USAGE
       look the	SYNOPSIS.see Router::Simple for	more details.

FUNCTIONS
       router
       connect
       submapper

SEE ALSO
       Router::Simple

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

NAME | SYNOPSIS | DESCRIPTION | USAGE | FUNCTIONS | SEE ALSO

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

home | help