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

Add withDoctype helper

This commit is contained in:
RGBCube 2024-02-28 13:31:14 +03:00
parent 6e2c6ff8f3
commit 5a886290e8
No known key found for this signature in database

View file

@ -31,10 +31,11 @@
in {
inherit (escapix) raw;
call = builtins.scopedImport {
inherit (self) raw call __findFile;
call = builtins.scopedImport (self // {
inherit lib;
};
});
withDoctype = body: "<!DOCTYPE html>${body}";
result = self.call /${builtins.getEnv "TARGET_FILE"};