update readme
This commit is contained in:
parent
cb6d9652f8
commit
b734310051
3 changed files with 36 additions and 11 deletions
|
@ -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}>${
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue