mirror of
https://github.com/kennethreitz/replit-py.git
synced 2026-06-05 23:10:18 +00:00
Use f-string instead of concatenation in example
This commit is contained in:
@@ -15,7 +15,7 @@ app.login_wall(exclude=["/"], handler=login_page)
|
||||
|
||||
@app.route("/")
|
||||
def index() -> str:
|
||||
return "Some introduction " + maqpy.Link("check out my page", href="/page")
|
||||
return f"Hello! {maqpy.Link('check out this page', href='/page')}"
|
||||
|
||||
|
||||
@app.route("/page")
|
||||
|
||||
Reference in New Issue
Block a user