Update routing.md <PARAM>

Some markdown readers (such as github's preview) parse `<PARAM>` as an HTML tag.

Wrapping it in a code block fixes that.
This commit is contained in:
João Costa 2016-10-15 19:30:44 +01:00 committed by GitHub
parent 1d519ff407
commit ce7a34b608

View File

@ -1,6 +1,6 @@
# Routing
Sanic comes with a basic router that supports request parameters. To specify a parameter, surround it with carrots like so: <PARAM>. Request parameters will be passed to the request handler functions as keyword arguments. To specify a type, add a :type after the parameter name, in the carrots. If the parameter does not match the type supplied, Sanic will throw a NotFound exception, resulting in a 404 page not found error.
Sanic comes with a basic router that supports request parameters. To specify a parameter, surround it with carrots like so: `<PARAM>`. Request parameters will be passed to the request handler functions as keyword arguments. To specify a type, add a :type after the parameter name, in the carrots. If the parameter does not match the type supplied, Sanic will throw a NotFound exception, resulting in a 404 page not found error.
## Examples
@ -29,4 +29,4 @@ async def person_handler(request, person_id):
async def folder_handler(request, folder_id):
return text('Folder - {}'.format(folder_id))
```
```