diff options
Diffstat (limited to 'lib/Dancer2/Manual.pod')
-rw-r--r-- | lib/Dancer2/Manual.pod | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/Dancer2/Manual.pod b/lib/Dancer2/Manual.pod index 858393e5..7e2c9e4a 100644 --- a/lib/Dancer2/Manual.pod +++ b/lib/Dancer2/Manual.pod @@ -13,7 +13,7 @@ Dancer2::Manual - A gentle introduction to Dancer2 =head1 VERSION -version 1.0.0 +version 1.1.0 =head1 DESCRIPTION @@ -223,6 +223,12 @@ coderef to execute, which returns the response. The above route specifies that, for GET requests to C</hello/...>, the code block provided should be executed. +You can also provide routes with a name: + + get 'hi_to' => '/hello/:name' => sub {...}; + +See L<Dancer2::Manual::Keywords/uri_for_route> on how this can be used. + =head3 Retrieving request parameters The L<query_parameters|Dancer2::Manual/query_parameters>, |