I'm trying to port a simple flask app to sanic, working with the example for sanic and jinja.
Does sanic have a url_for()
function like flask?
I'm trying to port a simple flask app to sanic, working with the example for sanic and jinja.
Does sanic have a url_for()
function like flask?
Update: Sanic 0.3.1 adds support for
url_for()
:No. Currently sanic's router is very basic and does not support lookups. You can review the short source code here: https://github.com/channelcat/sanic/blob/master/sanic/router.py