use*_*666 5 python-3.x python-asyncio sanic
我正在尝试将一个简单的烧瓶应用程序移植到sanic,使用sanic和jinja的示例.
sanic有url_for()像烧瓶这样的功能吗?
更新:Sanic 0.3.1增加了对以下内容的支持url_for():
url = app.url_for('post_handler', post_id=5, arg_one='one', arg_two='two')
目前,sanic的路由器非常基础,不支持查找.你可以在这里查看简短的源代码:https:   //github.com/channelcat/sanic/blob/master/sanic/router.py