Replies: 1 comment
-
This looks a bit out-of-scope for Rocket, from my understanding of the project's philosophy. Rocket is an opinionated web framework, but probably not to the point of deciding how HTML should be emitted based solely on the type of a structure's field. Should HTML5 be used? Should inputs have bootstrap classes attached to them? This is very project-dependant. However, having experience in Symfony, I agree that very high-level form builders are really great. But this should be its own library, and Rocket is "open" enough for an external crate to be able to implement this kind of things. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey,
I am currently working with HTML-forms but it's not a very pleasant experience...
The only other Web-Framework comparable to Rocket I used so far is Django, that's why I will refer a bit to Djangos approach to this problems. This does not mean Rocket has/should to do it the same way! However it would be more convenient to work with Rocket this way.
Problems:
Suggestion: autotranslate Form to html
Suggestion: easier return of template
I believe this is the normal use-case to return without extra context so it should be supported in an easier way so this should be simpler...
I would also help to extend the framework but would like to at least get some feedback and discussion before implementing something in vain.
Also I have no experience in macro-programming so I don't know if this is even possible to implement...
Beta Was this translation helpful? Give feedback.
All reactions