this repo has no description
4
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add project README, update gleam.toml

+23
+21
README.md
··· 1 + # formz 2 + 3 + [![Package Version](https://img.shields.io/hexpm/v/formz)](https://hex.pm/packages/formz) 4 + [![Hex Docs](https://img.shields.io/badge/hex-docs-ffaff3)](https://hexdocs.pm/formz/) 5 + 6 + A Gleam library for parsing and generating accessible HTML forms. 7 + 8 + ```gleam 9 + import formz/field.{field} 10 + import formz/formz_builder as formz 11 + import formz_string/definitions 12 + 13 + pub fn make_form() { 14 + formz.new() 15 + |> formz.add(field("username"), definitions.text_field()) 16 + |> formz.add(field("password"), definitions.password_field()) 17 + |> formz.decodes(fn(username) { fn(password) { #(username, password) } }) 18 + } 19 + ``` 20 + 21 + See the [main package](https://github.com/bentomas/formz/tree/main/formz) for more details
+2
formz/gleam.toml
··· 1 1 name = "formz" 2 2 version = "0.1.0" 3 + description = "Accessible, type safe form parsing and generating for Gleam" 4 + licences = ["Unlicense"] 3 5 4 6 # Fill out these fields if you intend to generate HTML documentation or publish 5 7 # your project to the Hex package manager.