--parse-templates is no longer supported
juokaz opened this issue · comments
Juozas commented
The Flask 0.11 CLI does not support the --parse-templates
functionality, while the Flask Script CLI does.
eMerzh commented
@miracle2k any idea how we can bypass that ?
Gergely Polonkai commented
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()
Gergely Polonkai commented
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 :(