Source code for pythonie.blueprints.blueprints

"""Blueprints let you compose your application from components

"""

import flask

blueprint = flask.Blueprint("blueprints", __name__)

@blueprint.route("/")
[docs]def index(): """Yet another hello world, but this time inside a blueprint To see in action go to http://building-webapps-with-flask.herokuapp.com/blueprints/ """ return "Hello from a blueprint"