OCaml library for web form rendering and validation

I am trying to do some web programming in OCaml. Are there any existing libraries that handle HTML form rendering and validation? I am using TyXML to generate HTML, so TyXML integration would be great.

1 Like

I do it idiosyncratically to avoid dependencies, see e.g. the form and post functions of Login: lib/shaarli.ml.

The result looks like https://demo.mro.name/seppo/seppo.cgi/shaarli/login

just found a better example for validation may be in Config.