I've released the initial version of a Flask extension for integrating with Fanstatic:
This extension adds a few features over simply using the Fanstatic WSGI middleware.
It provides a helper to declare the needed resources directly from the template:
{{ g.fanstatic.needs(
'js.jquery:jquery',
'js.handlebars:handlebars',
) }}
It also lets you easily wrap existing static files in your Flask app as Fanstatic resources:
app = Flask(__name__)
fanstatic = Fanstatic(app)
fanstatic.resource('js/app.js', name='app_js', depends=[jquery])
and then reference them from the template by name:
{{ g.fanstatic.needs('app_js') }}
The README covers other usage examples, but let me know if you have any questions or feedback.