←back to thread

49 points markusw | 1 comments | | HN request time: 0.205s | source

Hey everyone! I just released v1.0.0 of gomponents last week. It's an HTML component builder in pure Go, with a DSL-like HTML syntax. It's been 4 years in the making, and makes it really easy to build HTML in your web apps.
Show context
floydnoel ◴[] No.41852638[source]
are event handlers possible? neither the Github repo nor the linked page showed an example of a button or form submission.
replies(5): >>41856116 #>>41875243 #>>41875298 #>>41876441 #>>41876492 #
1. tomhallett ◴[] No.41875298[source]
If you mean “action=/foo” for a “form” tag, there is an “Action” attribute: https://github.com/maragudk/gomponents/blob/main/html/attrib...