Is there any extension like flask-wtf? If not, how do you deal with forms?
All of the known existing extensions are here: https://github.com/channelcat/sanic/blob/master/docs/sanic/extensions.md
I don't see any related to forms. Would be great if you or someone else wanted to contribute this.
I generate a form and pull data from it:
https://github.com/stopspazzing/Sanic-Server-with-MDL-Blog-Template/blob/master/main.py#L62-L85
specifically line 80:
https://github.com/stopspazzing/Sanic-Server-with-MDL-Blog-Template/blob/master/main.py#L80
I'm sure there are other ways of doing it... and is a work in progress. A Sanic form extension would be useful. Maybe I'll look into porting it. Not a pro in Python, so...
I cooked up this, Sanic-WTF , it is pip-installable. If it works, it's pure miracle 馃構
Awesome work @pyx! Closing this now.
Most helpful comment
I cooked up this, Sanic-WTF , it is pip-installable. If it works, it's pure miracle 馃構