update doc
This commit is contained in:
parent
fd0a4f9b02
commit
08bad93d56
1 changed files with 3 additions and 3 deletions
|
@ -122,10 +122,10 @@ r3_tree_free(n);
|
||||||
|
|
||||||
Slug
|
Slug
|
||||||
-----------------------
|
-----------------------
|
||||||
A slug is placeholder, which capture the string from URL as a variable. slugs
|
A slug is a placeholder, which captures the string from the URL as a variable.
|
||||||
will be compiled into regular expression patterns.
|
Slugs will be compiled into regular expression patterns.
|
||||||
|
|
||||||
A slug without pattern like `/user/{userId}` will be compiled into a `[^/]+` pattern.
|
Slugs without specified pattern (like `/user/{userId}`) will be compiled with the `[^/]+` pattern.
|
||||||
|
|
||||||
To specify the pattern of a slug, you may write a colon to separate the slug name and the pattern:
|
To specify the pattern of a slug, you may write a colon to separate the slug name and the pattern:
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue