feat(users/Profpatsch/whatcd-resolver): conduitToHtmx w/ counter ex

Experiment: can we convert any Html-producing conduit into a
self-updating htmx snippet? Yes!

Add the resulting handler and initial snippet, and it will poll the
handler every second or so until the conduit stops emitting values.

Change-Id: I0bed17a5db8691a19df6c334ae1268dd6a3d3123
Reviewed-on: https://cl.tvl.fyi/c/depot/+/13209
Tested-by: BuildkiteCI
Reviewed-by: Profpatsch <mail@profpatsch.de>
This commit is contained in:
Profpatsch 2025-03-06 13:57:12 +01:00
parent b865618291
commit 570a3c044f
2 changed files with 87 additions and 9 deletions

View file

@ -87,6 +87,7 @@ library
blaze-html,
bytestring,
case-insensitive,
conduit,
containers,
unordered-containers,
directory,
@ -101,7 +102,9 @@ library
monad-logger,
mtl,
network-uri,
random,
resource-pool,
template-haskell,
postgresql-simple,
punycode,
tmp-postgres,