tvl-depot/users/sterni
sterni 9ed439bfbd feat(users/sterni/nix): cursed nix html DSL
Couldn't sleep, so I made a surprisingly neat way to render HTML
documents in Nix using our favorite feature __findFile:

  let
    inherit (depot.users.sterni.nix.html) __findFile esc;

  in

  <html> {} [
    (<head> {} [
      (<meta> { charset = "utf-8"; } null)
      (<title> {} (esc "hello"))
    ])
    (<body> {} [
      (<h1> {} (esc "hello world"))
    ])
  ]

=> "<html><head><meta charset=\"utf-8\"/><title>hello</title></head><body><h1>hello world</h1></body></html>"

Change-Id: Id36808a56ae3da3b5263c06f29342fc22d105c21
Reviewed-on: https://cl.tvl.fyi/c/depot/+/3410
Tested-by: BuildkiteCI
Reviewed-by: tazjin <mail@tazj.in>
2021-08-26 15:34:58 +00:00
..
clhs-lookup feat(nix/buildLisp): add ecl 2021-08-24 22:00:15 +00:00
dot-time-man-pages feat(sterni/dot-time-man-pages): mdoc port of dotti.me 2021-04-02 09:14:28 +00:00
emacs chore(users/sterni/emacs): fix typo 2021-08-24 12:33:23 +00:00
htmlman feat(users/sterni/htmlman): hyperlink .Xr macro in output 2021-03-11 14:31:19 +00:00
nint chore(nix): move rustSimple from users.Profpatsch.writers 2021-04-24 10:23:55 +00:00
nix feat(users/sterni/nix): cursed nix html DSL 2021-08-26 15:34:58 +00:00
keys.nix feat(ops/nixos/whitby): add sterni user 2021-01-13 22:05:33 +00:00
OWNERS chore(sterni): init user folder 2021-01-11 11:43:33 +00:00