Skip to content

Commit

Permalink
mention routes command in tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Feb 8, 2015
1 parent d28312a commit 0052a0a
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions lib/Mojolicious/Guides/Tutorial.pod
Expand Up @@ -439,7 +439,9 @@ just make a list of possible values.
app->start;

All placeholders get compiled to a regular expression internally, this process
can also be easily customized.
can also be easily customized. Just make sure not to use C<^> and C<$> or
capturing groups (C<(...)>), non-capturing groups (C<(?:...)>) are fine
though.

use Mojolicious::Lite;

Expand All @@ -453,9 +455,10 @@ can also be easily customized.

app->start;

Just make sure not to use C<^> and C<$> or capturing groups C<(...)>, because
placeholders become part of a larger regular expression internally, C<(?:...)>
is fine though.
You can take a closer look at all the generated regular expressions with the
command L<Mojolicious::Command::routes>.

$ ./myapp.pl routes -v

=head2 Under

Expand Down

0 comments on commit 0052a0a

Please sign in to comment.