Comparing version 2.3.0 to 2.4.0
@@ -69,2 +69,6 @@ 'use strict'; | ||
function noop(files, metalsmith, done) { | ||
done(); | ||
} | ||
var getEngine = function (name) { return cons[name]; }; | ||
@@ -118,5 +122,6 @@ | ||
var cwd = ref.cwd; if ( cwd === void 0 ) cwd = process.cwd(); | ||
var clean = ref.clean; if ( clean === void 0 ) clean = true; | ||
var clean = ref.clean; if ( clean === void 0 ) clean = false; | ||
var data = ref.data; | ||
var prompts = ref.prompts; | ||
var disableInterpolation = ref.disableInterpolation; if ( disableInterpolation === void 0 ) disableInterpolation = false; | ||
var skipInterpolation = ref.skipInterpolation; | ||
@@ -133,3 +138,3 @@ var engine = ref.engine; if ( engine === void 0 ) engine = 'handlebars'; | ||
.use(filterFiles(filters)) | ||
.use(template({skipInterpolation: skipInterpolation, engine: engine})) | ||
.use(disableInterpolation ? noop : template({skipInterpolation: skipInterpolation, engine: engine})) | ||
.clean(clean) | ||
@@ -136,0 +141,0 @@ .destination(path.resolve(cwd, dest)) |
{ | ||
"name": "kopy", | ||
"version": "2.3.0", | ||
"version": "2.4.0", | ||
"description": "Gracefully copy a directory and render templates.", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -67,3 +67,3 @@ # kopy | ||
Type: `boolean`<br> | ||
Default: `true` | ||
Default: `false` | ||
@@ -111,2 +111,9 @@ Whether to clean destination directory before writing to it. | ||
##### disableInterpolation | ||
Type: `boolean`<br> | ||
Default: `false` | ||
Similar to `skipInterpolation`, but `disableInterpolation` disables all template interpolation, template markup will remain the way it is. | ||
##### filters | ||
@@ -113,0 +120,0 @@ |
10010
126
139