Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Repetition in code for routes in Flask (or Bottle)

@app.route("/foo/<arg>")
def foo_arg(arg):
    return render_template(f"foo_{arg}.html")
 
PREVIOUS NEXT
Tagged: #Repetition #code #routes #Flask
ADD COMMENT
Topic
Name
1+9 =