In a Flask website, I want to create a Blueprint called gallery which is a lightbox/art gallery application, but have multiple instances of it. For example,
app.register_blueprint(gallery,url_prefix='/photos')
app.register_blueprint(gallery,url_prefix='/paintings')
However I want the two instances of gallery to have entirely independent content sources, so the Blueprint needs an additional argument, i.e.
app.register_blueprint(gallery,url_prefix='/photos',source_directory='content/photos/')
app.register_blueprint(gallery,url_prefix='/paintings',source_directory='content/paintings/')
How do I make this possible? Alternatively can I access what url_prefix was in the Blueprint itself?