I'm aware of Actix and Rocket's forms support and GitHub - kvnallsn/webforms: A library to provide form validation and HTML generation for Rust.
webforms
has the notion of rendering forms stenciled into the roadmap in the README, but it hasn't actually been implemented yet as far as I can tell.
Is there a library that has implemented render-able web forms yet? I'm accustomed to things like yesod-form: Form handling support for Yesod Web Framework or Django forms.
Here are some examples using yesod-form
:
- src/Handler/Auth/Forms.hs · master · lorepub / Moot · GitLab
- src/Handler/Auth.hs · master · lorepub / Moot · GitLab
- src/Handler/Auth/Views.hs · master · lorepub / Moot · GitLab
One of the key time-savers around Django forms and yesod-form
is that they render the form with error labels when validation fails, sparing you needing to put a bunch of if conditions into your templates.
I keep revisiting snooping around for such a library because it would make migrating a project of mine to Rust a lot more palatable. I'm trying to avoid implementing a SPA if I can.
Thanks for your time.