update readme

This commit is contained in:
tristan 2024-01-01 00:04:17 +00:00
parent cb6d9652f8
commit b734310051
3 changed files with 36 additions and 11 deletions

View file

@ -7,9 +7,9 @@ let
''${key}="${toString value}"'';
in rec {
toHTML = elem:
if builtins.typeOf elem == "string" then
if builtins.isString elem then
elem
else if builtins.typeOf elem == "list" then
else if builtins.isList elem then
builtins.toString (map toHTML elem)
else
"<${elem.tag} ${writeAttrs elem.attrs}>${