Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--parse-templates is no longer supported #114

Open
juokaz opened this issue Sep 19, 2016 · 3 comments
Open

--parse-templates is no longer supported #114

juokaz opened this issue Sep 19, 2016 · 3 comments

Comments

@juokaz
Copy link

juokaz commented Sep 19, 2016

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

@eMerzh
Copy link

eMerzh commented Oct 13, 2017

@miracle2k any idea how we can bypass that ?

@gergelypolonkai
Copy link

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
Copy link

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 :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants