mirror of
https://github.com/RGBCube/HTMNIX
synced 2025-07-26 07:27: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
|
else
|
||||||
lib.strings.escapeXML string;
|
lib.strings.escapeXML string;
|
||||||
|
|
||||||
raw = string: derivation {
|
raw = string: toString (derivation {
|
||||||
name = "_";
|
name = "_";
|
||||||
system = "_";
|
system = "_";
|
||||||
builder = "_";
|
builder = "_";
|
||||||
rawContent = "${startMarker}${yeet string}${endMarker}";
|
rawContent = "${startMarker}${yeet string}${endMarker}";
|
||||||
};
|
});
|
||||||
in {
|
in {
|
||||||
inherit escape raw;
|
inherit escape raw;
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,8 +43,8 @@
|
||||||
outPath = dottedNameToTag name;
|
outPath = dottedNameToTag name;
|
||||||
|
|
||||||
__functor = this: next:
|
__functor = this: next:
|
||||||
# Not an attrset or an escaped one. Just toString it and add it onto the HTML.
|
# Not an attrset. Just add it onto the HTML.
|
||||||
if builtins.isAttrs next -> lib.hasSuffix "-_" next.outPath or ""
|
if !builtins.isAttrs next
|
||||||
then this // {
|
then this // {
|
||||||
outPath = (toString this) + escape (toString next);
|
outPath = (toString this) + escape (toString next);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue