1{% extends "bootstrap/base.html" %}
2{% block title %}This is an example page{% endblock %}
3
4{% block navbar %}
5<div class="navbar navbar-fixed-top">
6 <!-- ... -->
7</div>
8{% endblock %}
9
10{% block content %}
11 <h1>Hello, Bootstrap</h1>
12{% endblock %}
13
1from flask import Flask
2from flask_bootstrap import Bootstrap
3
4def create_app():
5 app = Flask(__name__)
6 Bootstrap(app)
7
8 return app
9
10# do something with app...
11