1
Fork 0
mirror of https://github.com/RGBCube/HTMNIX synced 2025-07-29 00:47:44 +00:00

Add escapix

This commit is contained in:
RGBCube 2024-02-28 10:01:36 +03:00
parent 02c480acc4
commit 682ed00b4f
No known key found for this signature in database
2 changed files with 61 additions and 1 deletions

View file

@ -8,7 +8,8 @@
last = n: string: builtins.substring (builtins.stringLength string - n) n string;
dropLast = n: string: builtins.substring 0 (builtins.stringLength string - n) string;
escape = string: string; # TODO
escapix = import ./escape.nix;
inherit (escapix) escape;
attrsetToHtmlAttrs = attrs:
builtins.concatStringsSep " "
@ -24,6 +25,8 @@
else "<${name}>";
in {
inherit (escapix) raw;
__findFile = _: name: {
outPath = dottedNameToTag name;