mirror of
https://github.com/RGBCube/HTMNIX
synced 2025-07-29 00:47:44 +00:00
Add escapix
This commit is contained in:
parent
02c480acc4
commit
682ed00b4f
2 changed files with 61 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue