Open jorgebastida opened 11 years ago
As part of some js bundles we was using wildcards to add several js files
js_app = Bundle('js/base.js', 'js/app/*.js', 'js/utils/*.js', filters=['jsmin'], output='js/app.js')
With assets_debug = True when looping over the js_app bundle items like:
assets_debug = True
{% assets "styles" %} {{ ASSET_URL }} {% endassets %}
All these urls were wrong because the filenames weren't resolved and instead js/app/*.js was printed as many times as files we have inside js/app.
js/app/*.js
js/app
This patch tries to fix this issue extracting from the filepath the right part of the path and then join it with the root url.
As part of some js bundles we was using wildcards to add several js files
With
assets_debug = True
when looping over the js_app bundle items like:All these urls were wrong because the filenames weren't resolved and instead
js/app/*.js
was printed as many times as files we have insidejs/app
.This patch tries to fix this issue extracting from the filepath the right part of the path and then join it with the root url.