Template engine consolidation for gulp
gulp-consolidate as a development dependency:
npm install --save-dev gulp-consolidate
Then, add it to your
var consolidate = ;gulp;
The consolidate.js supported template engine used to render each file.
Note: The template engine must also be installed via npm.
npm install --save-dev swig
The data to use to render the templates.
If this argument is a function, it will be called with the file as the only argument to get the template data.
Most times, you will want to render templates that include other files. In order to do so, the filenames will be passed to consolidate rather than the file contents.
If you would rather pass the file contents to consolidate, set the
useContents option to true.