Exemplo n.º 1
0
from flask import render_template
from flask_bootstrap import Bootstrap

app = Bootstrap(__name__)


@app.route('/')
def hello_world():
    return render_template('index.html')

@app.route("/user/<name>")
def user(name):
    return render_template('user.html', name=name)

if __name__ == '__main__':
    app.run()
Exemplo n.º 2
0
from flask import Flask
from flask import render_template
from flask_bootstrap import Bootstrap

app = Flask(__name__)
bootstrap = Bootstrap(app=app)


@app.route('/')
def index():
    return render_template('index.html')


if __name__ == '__main__':
    bootstrap.run()