The current way of specifying functions in command-line and in config file is very limiting. Lets create a new way to build firefly applications by building it on top of Flask. That gives it the ability to use Flask for extending it for any purpose, mix and match with other Flask applications.
You create it using:
app = Firefly() # or Firefly(__name__)
or
app = Firefly(flask_app=flask_app)
The flask app can be accessed anywhere by using app.flask_app.
app.function should intern call self.flask_app.route.
The current way of specifying functions in command-line and in config file is very limiting. Lets create a new way to build firefly applications by building it on top of Flask. That gives it the ability to use Flask for extending it for any purpose, mix and match with other Flask applications.
You create it using:
or
The flask app can be accessed anywhere by using
app.flask_app.app.functionshould intern callself.flask_app.route.