mirror of
https://github.com/RGBCube/HTMNIX
synced 2025-07-25 23:17:44 +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 {
|
||||
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"};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue