You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
270 B
15 lines
270 B
4 years ago
|
from flask import Flask
|
||
|
from flask import render_template
|
||
|
|
||
|
app = Flask(__name__)
|
||
|
|
||
|
@app.route('/')
|
||
|
def hello_world():
|
||
|
return 'Hello, World!'
|
||
|
|
||
|
|
||
|
@app.route('/hello/')
|
||
|
@app.route('/hello/<name>')
|
||
|
def hello(name=None):
|
||
|
return render_template('hello.html', name=name)
|