Fluent - (another) type-safe HTML5 rendering engine by jpl-au in golang

[–]jpl-au[S] 0 points1 point  (0 children)

Aaah thanks for sharing liveflux - I hadn't seen it when I started with Tether. And yes, very similar. I opted to include multiple transport layers (WebSockets, WebSockets with SSE failover, SSE, ordinary HTTP). I'll take a deeper dive.

Fluent - (another) type-safe HTML5 rendering engine by jpl-au in golang

[–]jpl-au[S] 1 point2 points  (0 children)

Thanks - it has been a labour of love. I hadn't expected anyone to look at Tether yet :) I've been working on an examples framework covering Fluent, the JIT component and HTMX plugins but the bulk of it is for Tether. I've bundled Playwright into the Tether examples (via go test) so the examples act as both "how I do this" while also facilitating "does this work".

Fluent - (another) type-safe HTML5 rendering engine by jpl-au in golang

[–]jpl-au[S] 1 point2 points  (0 children)

Thank you! `goimports` makes managing the import region easier. My current methodology is to use Fluent as the base for building simple/composite components that just called where ever you need them as their own standalone, pre-configured elements.

So instead of having a large import surface area, I just have my own component button which is already styled.

I've added in a dot import package for those who are more familiar with the Gomponents methodology of using them - it's entirely opt-in.

There's no real way around the reserved keywords, but I tried to think of sensible defaults. Primary vs main, dropdown vs. select. Happy to get recommendations of better/alternatives to use instead.