miracle2k / flask-assets

Flask webassets integration.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Script tags added without sources

rcubarocha opened this issue · comments

I have a project using FLASK-ASSETS that (in debug mode) outputs the correct number of <script> tags (corresponding to the number of JS assets I have registered) but none of them with any actual source. Like so:

<script type="text/javascript" src=""></script>

It's as if {{ ASSET_URL }} were returning empty in each iteration.

The strangest part is that this works just fine in an old GUI Ubuntu VM I'd been using for this project (and in production on Heroku), but now that I have moved to a Vagrant environment (with the same code and same setup through pip requirements), this is happening.

Thanks in advance for any help.

Sorry, was quick on the trigger with this.

I assumed the requirements.txt for the project was reliable, but the new (Vagrant) environment ended up with incompatible versions of Jinja and Flask-Assets (or perhaps more accurately, webassets) as described in #122.

Sorry about that. Closing this now.