From ce7a34b60839fa0f28e926b3d96a0a42f40441c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Costa?= Date: Sat, 15 Oct 2016 19:30:44 +0100 Subject: [PATCH] Update routing.md Some markdown readers (such as github's preview) parse `` as an HTML tag. Wrapping it in a code block fixes that. --- docs/routing.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/routing.md b/docs/routing.md index 171639dc..1e5c0816 100644 --- a/docs/routing.md +++ b/docs/routing.md @@ -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: . 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: ``. 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)) -``` \ No newline at end of file +```