

def create_blueprint(name=None):
    '\n    Factory for create blueprint.\n    '
    name = (name or 'testblueprint')
    blueprint = Blueprint(name, 'testapp.{0}'.format(name), template_folder='templates')
    views = LazyViews(blueprint, import_prefix='.views')
    views.add('/', 'test')
    views.add('/advanced', 'advanced', methods=('GET', 'POST'))
    views.add('/error/<int:code>', 'custom_error')
    views.add('/gone', 'custom_error', defaults={
        'code': 410,
    }, endpoint='gone')
    views.add_error(403, 'error')
    views.add_error(410, 'error', app=True)
    return blueprint

dataset/ETHPy150Open playpauseandstop/Flask-LazyViews/testapp/testblueprint/blueprint.py create_blueprint/original