Fish Touching🐟🎣

Python Flask

Apr 6, 2023

CS50
Decorator Pattern

# Composition

# layout.html

With the {% %} syntax, we can include placeholder blocks, or other chunks of code. Here we’ve named our block body since it contains the HTML that should go in the <body> element.
Basically placeholder

# Lib

# Request

request.args.get("name") catch ?name=David

# render_template

return render_template("index.html", name=name)

return render_template("greet.html", name=request.form.get("name", "world"))

# Redirect

use to redirect to another route

# Paradigm