from flask import Flask, render_template
app = Flask(__name__)
@app.route('/')
def index():
return render_template("amogus.html")
@app.route('/test/<a>&<b>')
def mica(a,b):
s=int(a)+int(b)
return render_template("tset.html",output=s,aa=a,bb=b)
if __name__ == '__main__':
app.run(host='0.0.0.0', debug=True)
<html>
<head>
<title>Title</title>
</head>
<body>
<h1>Это уже из файла HTML</h1>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<font color="red" size="14">Это уже страница mica</font>
<h1>{{output}}</h1>
{{aa}}<br>
{{bb}}
</body>
</html>