tvl-depot/users/sterni
sterni 3bd43e39dd feat(sterni/nix/html): flatten lists enclosed by an element
Currently nix/html requires that the content of an element is either an
HTML string (which may or may not be generated by the library) or a flat
list of HTML strings (which may or may not be generated by the library).

I've found that this requirement makes authoring more complex pages that
have programmatically generated parts cumbersome since one needs to take
care that returned lists are appended, not included as an element. This
leads to confusing code and annoying errors. We don't really care about
the nesting of a content list as long as the order is clear, so we can
just flatten the list making life a little easier:

    (<main> { } [
      (<section> { } (<h2> { } "static section"))
      listOfGeneratedSections
      (<section> { } (<h2> { } "another section"))
    ])

Change-Id: I06016a8eff01d34d7eaea7798a00ed191115f9c8
Reviewed-on: https://cl.tvl.fyi/c/depot/+/12908
Reviewed-by: sterni <sternenseemann@systemli.org>
Tested-by: BuildkiteCI
Autosubmit: sterni <sternenseemann@systemli.org>
2024-12-25 00:36:36 +00:00
..
clhs-lookup style: format entire depot with nixpkgs-fmt 2022-01-31 16:11:53 +00:00
dot-time-man-pages chore(gerrit): migrate OWNERS files to code-owners style 2022-09-19 11:13:28 +00:00
emacs fix(sterni/emacs): get emacs to use default monospace for unicode 2024-12-20 23:38:05 +00:00
exercises/aoc feat(sterni/exercises/lib): add Diagonals BQN function 2024-12-20 17:39:18 +00:00
external chore(sterni/external/likely-music): update to 2023-02-07 2023-03-01 13:40:55 +00:00
git-only-push feat(sterni/git-only-push): support force pushing 2024-12-22 13:36:39 +00:00
htmlman style: format entire depot with nixpkgs-fmt 2022-01-31 16:11:53 +00:00
machines chore(sterni/machines/ingeborg): remove gopher related configs 2024-12-21 21:27:13 +00:00
mblog chore(3p/lisp/closure-*): disable on ECL for now 2024-12-02 23:15:51 +00:00
modules chore(sterni/ingeborg/minecraft): 1.21.1 -> 1.21.3 2024-11-17 16:09:44 +00:00
nix feat(sterni/nix/html): flatten lists enclosed by an element 2024-12-25 00:36:36 +00:00
nixpkgs-crate-holes chore(3p/sources): Bump channels & overlays 2022-09-28 08:02:31 +00:00
secrets feat(sterni/ingeborg/monitoring): expose netdata via nginx 2024-11-18 11:21:37 +00:00
keys.nix chore(sterni/keys): add ludwig ssh key 2022-10-07 16:17:15 +00:00
OWNERS chore(gerrit): migrate OWNERS files to code-owners style 2022-09-19 11:13:28 +00:00