mirror of https://github.com/mitsuhiko/flask.git
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.
19 lines
423 B
19 lines
423 B
# -*- coding: utf-8 -*- |
|
""" |
|
Blueprint Example |
|
~~~~~~~~~~~~~~~~~ |
|
|
|
:copyright: © 2010 by the Pallets team. |
|
:license: BSD, see LICENSE for more details. |
|
""" |
|
|
|
from flask import Flask |
|
from simple_page.simple_page import simple_page |
|
|
|
app = Flask(__name__) |
|
app.register_blueprint(simple_page) |
|
# Blueprint can be registered many times |
|
app.register_blueprint(simple_page, url_prefix='/pages') |
|
|
|
if __name__=='__main__': |
|
app.run()
|
|
|