mirror of
https://github.com/RGBCube/HTMNIX
synced 2025-07-26 23:47:43 +00:00
Add withDoctype helper
This commit is contained in:
parent
6e2c6ff8f3
commit
5a886290e8
1 changed files with 4 additions and 3 deletions
|
@ -31,10 +31,11 @@
|
||||||
in {
|
in {
|
||||||
inherit (escapix) raw;
|
inherit (escapix) raw;
|
||||||
|
|
||||||
call = builtins.scopedImport {
|
call = builtins.scopedImport (self // {
|
||||||
inherit (self) raw call __findFile;
|
|
||||||
inherit lib;
|
inherit lib;
|
||||||
};
|
});
|
||||||
|
|
||||||
|
withDoctype = body: "<!DOCTYPE html>${body}";
|
||||||
|
|
||||||
result = self.call /${builtins.getEnv "TARGET_FILE"};
|
result = self.call /${builtins.getEnv "TARGET_FILE"};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue