support extra injection in template
This commit is contained in:
parent
33502dbd84
commit
617453769b
@ -140,7 +140,9 @@ let
|
||||
, src
|
||||
, nodePackages ? []
|
||||
, routes ? [ "/" ]
|
||||
,
|
||||
, extraHead ? ""
|
||||
, extraBody ? ""
|
||||
, extraPostBody ? ""
|
||||
}:
|
||||
let
|
||||
nodeSource = symlinkJoin {
|
||||
@ -207,9 +209,12 @@ let
|
||||
<meta name="msapplication-TileImage" content="/appdata/mstile-144x144.png">
|
||||
<meta name="msapplication-config" content="/appdata/browserconfig.xml">
|
||||
<meta name="theme-color" content="${themeColor}">
|
||||
${extraHead}
|
||||
</head>
|
||||
<body>
|
||||
${extraBody}
|
||||
</body>
|
||||
${extraPostBody}
|
||||
</html>
|
||||
'';
|
||||
in stdenv.mkDerivation {
|
||||
|
Loading…
Reference in New Issue
Block a user