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

Make raw logic simpler

This commit is contained in:
RGBCube 2024-02-28 14:01:51 +03:00
parent ea294f5fec
commit 8f1e184a29
No known key found for this signature in database
2 changed files with 4 additions and 4 deletions

View file

@ -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);
}