MCPcopy
hub / github.com/pallets/flask / index

Function index

examples/javascript/js_example/views.py:10–11  ·  view source on GitHub ↗
(js)

Source from the content-addressed store, hash-verified

8@app.route("/", defaults={"js": "fetch"})
9@app.route("/<any(xhr, jquery, fetch):js>")
10def index(js):
11 return render_template(f"{js}.html", js=js)
12
13
14@app.route("/add", methods=["POST"])

Callers

nothing calls this directly

Calls 1

render_templateFunction · 0.90

Tested by

no test coverage detected