forked from orbit-oss/flask
Change docs to use f-strings
This commit is contained in:
parent
8f422d2b5e
commit
07caa44224
7 changed files with 13 additions and 13 deletions
|
|
@ -70,7 +70,7 @@ implement a blueprint that does simple rendering of static templates::
|
|||
@simple_page.route('/<page>')
|
||||
def show(page):
|
||||
try:
|
||||
return render_template('pages/%s.html' % page)
|
||||
return render_template(f'pages/{page}.html')
|
||||
except TemplateNotFound:
|
||||
abort(404)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue