08 Dec 2016
# url:"http://domain.com/linux" \{\{ request.path \}\} "/linux"
# url:"http://domain.com/linux" \{\{ request.url_rule.endpoint \}\} "linux"
# url:"http://domain.com/linux" \{\{ request.url_rule.endpoint \}\} "http://domain.com/linux"
stackoverflow ask doc
A user requests the following URL:” http://www.example.com/myapplication/page.html?x=y”
In this case the values of the above mentioned attributes would be the following:
path /page.htmlscript_root /myapplicationbase_url http://www.example.com/myapplication/page.htmlurl http://www.example.com/myapplication/page.html?x=yurl_root http://www.example.com/myapplication/上面的\{\{和\}\}是为了不和jinja2语法冲突,其实\只是转义符,实际使用时没有这个符号