stewartpark / Flask-JSGlue

Flask-JSGlue helps hook up your Flask application nicely with the front end.
80 stars 39 forks source link

integrating Flask-JSGlue with Vue #28

Open havok2063 opened 4 years ago

havok2063 commented 4 years ago

If I'm building a web application using a Flask back-end but a Vue front-end instead of one based off the Jinja2 templating system, but still want to utilize Flask's url_for function in the front-end, what's the best way to do that?

iansprice commented 4 years ago

Include the jsglue-generated ({{ JSGlue.include() }} script before your Vue application, assign the JSGlue object to a Vue data prop or computed prop