Skip to content

Instantly share code, notes, and snippets.

@cbscribe
Created February 2, 2021 18:16
Show Gist options
  • Save cbscribe/493271fbdf2f1e8cc361e82071ee4108 to your computer and use it in GitHub Desktop.
Save cbscribe/493271fbdf2f1e8cc361e82071ee4108 to your computer and use it in GitHub Desktop.
Flask starter example
from flask import Flask, render_template
app = Flask(__name__)
@app.route("/")
def index():
return render_template("index.html", name="Emily")
<!DOCTYPE html>
<html lang="en">
<head>
<title>Welcome</title>
</head>
<body>
Hello, {{ name }}.
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment