Comparing version 7.0.0 to 7.0.1
@@ -229,3 +229,7 @@ 'use strict'; | ||
if (!disableInterpolation) { | ||
stream.use(useTemplate({ skipInterpolation, template, templateOptions })); | ||
stream.use(useTemplate({ | ||
skipInterpolation, | ||
template, | ||
templateOptions: typeof templateOptions === 'function' ? templateOptions(stream.meta) : templateOptions | ||
})); | ||
} | ||
@@ -232,0 +236,0 @@ |
{ | ||
"name": "kopy", | ||
"version": "7.0.0", | ||
"version": "7.0.1", | ||
"description": "Gracefully copy a directory and render templates.", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -74,6 +74,8 @@ # kopy | ||
Type: `object` | ||
Type: `object` `function` | ||
The template engine options. | ||
If it's a function we use the return value as `templateOptions`, and the first argument is `{ answers, data, merged }`. | ||
##### clean | ||
@@ -80,0 +82,0 @@ |
14518
214
193