flask-assets icon indicating copy to clipboard operation
flask-assets copied to clipboard

--parse-templates is no longer supported

Open juokaz opened this issue 9 years ago • 3 comments

The Flask 0.11 CLI does not support the --parse-templates functionality, while the Flask Script CLI does.

juokaz avatar Sep 19 '16 23:09 juokaz

@miracle2k any idea how we can bypass that ?

eMerzh avatar Oct 13 '17 08:10 eMerzh

My quick and dirty workaround is to keep a Flask-Script script around:

from flask_assets import ManageAssets as AssetsCommand
from flask_script import Manager

from app import create_app


app = create_app()
manager = Manager(app)
manager.add_command('assets', AssetsCommand)

if __name__ == '__main__':
    manager.run()

gergelypolonkai avatar Jan 30 '20 10:01 gergelypolonkai

Looking at the code, the Flask-Script and Click implementations use a completely different approach to call the webassets library, so it seems to be a real pain to fix this :(

gergelypolonkai avatar Jan 30 '20 10:01 gergelypolonkai