Created
June 30, 2017 02:19
-
-
Save joffilyfe/9c5e4e2196212c7e59a4ed502d2a8442 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from flask import Flask, request, render_template | |
app = Flask(__name__) | |
@app.route("/") | |
@app.route("/<name>") | |
def index(nome="Mundo"): | |
return render_template("index.html", name=name) | |
if __name__ == "__main__": | |
app.run() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment