Is there a bulb function or an easy way to convert a static path to it into an absolute path to a file 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 application or plan.
To clarify, I am currently using Flask-Asset.
{% assets "all_js" %}
<script type="text/javascript" src="{{ ASSET_URL }}"></script>
{% endassets %}
The above section in the template will generate this on the production side. The main reason is not to use a relative path, so that I can serve statics from a cookieless domain.
<script type="text/javascript" src="/static/public/all.580e5dae.js"></script>
source
share