Is there a flask function or a simple way to convert a static file path to it's absolute file path on disk? For example "/static/css/style.css" needs to return the absolute path for style.css based on the static folder defined in the app or blueprint.
To clarify, I'm currently using Flask-Asset.
{% assets "all_js" %}
<script type="text/javascript" src="{{ ASSET_URL }}"></script>
{% endassets %}
The above section in the template would generate this on the production side. The main reason to not use relative path is so I can serve the static from a cookieless domain.
<script type="text/javascript" src="/static/public/all.580e5dae.js"></script>