miguelgrinberg / turbo-flask

Integration of Hotwire's Turbo library with Flask.
MIT License
301 stars 35 forks source link

Upgrade to turbo 7.0.1 #18

Closed janpeterka closed 2 years ago

janpeterka commented 2 years ago

Hi, Turbo 7.0.1 brings great changes, namely I would love to use new after and before TurboStream options. Whats you timeframe on updating to this version? I just want to know if I should better wait with this change I'm doing or not :)

Thanks for this amazing package, allowing me to use Turbo in my Flask application!

miguelgrinberg commented 2 years ago

You can look at the implementation of any of the five original turbo stream actions, and use the same code to manually generate after and before. That should work until the package is updated.

You are also welcome to submit a PR with the updates. Eventually I'll get to it, but I do not have an estimate at this time.

janpeterka commented 2 years ago

Thanks for your answer! I will try to look into it, but I'm not sure I can write this implementation.

miguelgrinberg commented 2 years ago

I'm not sure I can write this implementation

Well, you could. :) Congrats and thank you so much!

janpeterka commented 2 years ago

Thank you! I'm glad I could help, I really love turbo and I wouldn't be able to use it without your amazing work!