···11+- document the formz_x modules beter. add guide for writing a form generator.
12- better error messages. include field name?
23- form sets
34- csrf token?
+1-1
formz/src/formz.gleam
···5959//// <tr>
6060//// <td>Accessing and manipulating config for a form item</td>
6161//// <td>
6262-//// <a href="#update_field">update_field</a><br>
6262+//// <a href="#update_config">update_config</a><br>
6363//// <a href="#set_name">set_name</a><br>
6464//// <a href="#set_label">set_label</a><br>
6565//// <a href="#set_help_text">set_help_text</a><br>
+3-5
formz_lustre/src/formz_lustre/widget.gleam
···11//// The goal of a "widget" in `formz` is to produce an HTML input like
22-//// `<input>`, `<select>`, or `<textarea>`. In a [`Definition`](https://hexdocs.pm/formz/formz/definition.html),
22+//// `<input>`, `<select>`, or `<textarea>`. In a formz `Definition`
33//// a widget can be any Gleam type, and it's up to the form generator being
44//// used to know the exact type you need.
55////
66-//// That said, in the bundled form generators a widget is a function that
77-//// takes the details of a field and some render time arguments that the form
88-//// generator needs to construct an input. This module is for those form
99-//// generators, and it's use is optional if you have different needs.
66+//// In this generator, the widget is either a function that takes the details
77+//// and state of a field, or a special value for a hidden field.
108119import formz
1210import gleam/list
+3-5
formz_nakai/src/formz_nakai/widget.gleam
···11//// The goal of a "widget" in `formz` is to produce an HTML input like
22-//// `<input>`, `<select>`, or `<textarea>`. In a [`Definition`](https://hexdocs.pm/formz/formz/definition.html),
22+//// `<input>`, `<select>`, or `<textarea>`. In a formz `Definition`
33//// a widget can be any Gleam type, and it's up to the form generator being
44//// used to know the exact type you need.
55////
66-//// That said, in the bundled form generators a widget is a function that
77-//// takes the details of a field and some render time arguments that the form
88-//// generator needs to construct an input. This module is for those form
99-//// generators, and it's use is optional if you have different needs.
66+//// In this generator, the widget is either a function that takes the details
77+//// and state of a field, or a special value for a hidden field.
108119import formz
1210import gleam/list
+3-5
formz_string/src/formz_string/widget.gleam
···11//// The goal of a "widget" in `formz` is to produce an HTML input like
22-//// `<input>`, `<select>`, or `<textarea>`. In a [`Definition`](https://hexdocs.pm/formz/formz/definition.html),
22+//// `<input>`, `<select>`, or `<textarea>`. In a formz `Definition`
33//// a widget can be any Gleam type, and it's up to the form generator being
44//// used to know the exact type you need.
55////
66-//// That said, in the bundled form generators a widget is a function that
77-//// takes the details of a field and some render time arguments that the form
88-//// generator needs to construct an input. This module is for those form
99-//// generators, and it's use is optional if you have different needs.
66+//// In this generator, the widget is either a function that takes the details
77+//// and state of a field, or a special value for a hidden field.
108119import formz
1210import gleam/list