mirror of
https://github.com/RGBCube/HTMNIX
synced 2025-07-25 23:17:44 +00:00
Make raw logic simpler
This commit is contained in:
parent
ea294f5fec
commit
8f1e184a29
2 changed files with 4 additions and 4 deletions
|
@ -44,12 +44,12 @@ lib: let
|
|||
else
|
||||
lib.strings.escapeXML string;
|
||||
|
||||
raw = string: derivation {
|
||||
raw = string: toString (derivation {
|
||||
name = "_";
|
||||
system = "_";
|
||||
builder = "_";
|
||||
rawContent = "${startMarker}${yeet string}${endMarker}";
|
||||
};
|
||||
});
|
||||
in {
|
||||
inherit escape raw;
|
||||
}
|
||||
|
|
|
@ -43,8 +43,8 @@
|
|||
outPath = dottedNameToTag name;
|
||||
|
||||
__functor = this: next:
|
||||
# Not an attrset or an escaped one. Just toString it and add it onto the HTML.
|
||||
if builtins.isAttrs next -> lib.hasSuffix "-_" next.outPath or ""
|
||||
# Not an attrset. Just add it onto the HTML.
|
||||
if !builtins.isAttrs next
|
||||
then this // {
|
||||
outPath = (toString this) + escape (toString next);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue