[READ-ONLY] Mirror of https://github.com/andrioid/humle. Write HTML with Go functions
0

Configure Feed

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

Go 98.0%
Go Template 2.0%
17 2 0

Clone this repository

https://git.vm.fail/andri.dk/humle https://git.vm.fail/did:plc:moyxchxsf65jmq2fznzvtjag
ssh://git@knot1.tangled.sh:2222/andri.dk/humle ssh://git@knot1.tangled.sh:2222/did:plc:moyxchxsf65jmq2fznzvtjag

For self-hosted knots, clone URLs may differ based on your setup.


README.md

Humle#

Composable HTML in pure Go.

The name is Danish for "hops", and also sounds a lot like a drunken person saying "html". I wasn't drunk when I made this, but I might as well have been.

Warning#

This is very much experimental and there's not much in form of escaping behavior yet. So use at your own risk.

But, why?#

I've been experimenting with D* recently and I was missing some of the ergonomics available to me when writing React/TypeScript.

Gomponents is probably the biggest influence here. The idea of using ... Nodes and io.Writer is a great one. The output is easy to read, clean and very composable.

How is this different?#

  • Aimed at Tailwind users
  • Pluggable attribute merging
  • Attempt to re-use interfaces from Go
  • Probably slower and more buggy (yet)

Usage#

// TODO

Honorable mentions#

  • [Templ]
  • [Gomponents]
  • [Gostar]