This WSGI middleware piece takes care of creating a per-request context for ToscaWidgets and injecting resource links into html responses.
It can also take care of serving those resources if serve_resources is True (default).
Initializes tw.core.middleware.ToscaWidgetsMiddleware and a tw.mods.base.HostFramework and wraps the WSGI application app with it.
Configuration can be passed in a dict as the config parameter.
Available options:
This is the ToscaWidgets#middleware paste.filter_app_factory entrypoint.