Copies recursively the files from source directory to destination directory with LoDash's templating method.
npm install template-directory --save-devvar template = require('template-directory');
template('/tmp/mydir', '/tmp/mynewdir', {
name: 'hello'
}, {
clobber: false,
templateOptions: {variable: 'data'}
});
//if you don't have settings, you can simply omit it
template('/tmp/mydir', '/tmp/mynewdir', {
name: 'hello'
});
//if you have neither settings, nor data. Just leave them
template('/tmp/mydir', '/tmp/mynewdir');Copies recursively the files from source directory to destination directory.
- Copy file directly if it is binary
- Templating file if it is text file with LoDash's templating method
datais used to interpolated the text files
Available settings:
clobber: defaults to true, overwrites destination filestemplateOptionsis template-options just passed to_.template

