Hey. I don’t know that this is a good idea. But I did it. At least some of it. Probably much of it. But there must be things I haven’t thought about. I did think about performance, so I’ve tried to minimize string allocations. But I didn’t benchmark anything. It seems to work, but is not used for any challenging amount of content.
Also, see issues.
Also, it’s almost midnight and this is pushed out now to impress the folks at Thaiger Sprint tomorrow.
this reminds me a bit of htmnix - i think that was the one briefly presented on at nixcon last year.
the fediversity website used to use nix-generated html as well (until the new person in charge of content at the time turned out to like wordpress better ).