Initial Commit

This commit is contained in:
dan
2021-10-29 16:24:02 -04:00
commit 0ead56b538
4 changed files with 39 additions and 0 deletions

17
app.py Normal file
View File

@@ -0,0 +1,17 @@
from flask import Flask, render_template, request
app = Flask(__name__)
@app.route('/', methods=['GET', 'POST'])
def index():
if request.method == "POST":
# getting input with name = fname in HTML form
instring = request.form.get("instring")
outstring = instring.replace(" ", "-")
return outstring
return render_template("index.html")
if __name__ == '__main__':
app.run()