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