Query: router::simple::submapper
OS: debian
Section: 3pm
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
Router::Simple::SubMapper(3pm) User Contributed Perl Documentation Router::Simple::SubMapper(3pm)NAMERouter::Simple::SubMapper - submapperSYNOPSISuse Router::Simple; my $router = Router::Simple->new(); my $s = $router->submapper('/entry/{id}', {controller => 'Entry'}); $s->connect('/edit' => {action => 'edit'}) ->connect('/show' => {action => 'show'});DESCRIPTIONRouter::Simple::SubMapper is sub-mapper for Router::Simple. This class provides shorthand to create routes, that have common parts.METHODSmy $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.SEE ALSORouter::Simple perl v5.14.2 2011-05-15 Router::Simple::SubMapper(3pm)
Similar Topics in the Unix Linux Community |
---|
Installing Dash Shell on OS X Lion |
awk or sed - Convert 2 lines to 1 line |
How can I do this in VI editor? |
One instance of comparing grep and awk |
Weird 'find' results |