Builds hosted by Travis CI:
$ npm install --save-dev gulp-lb-include
It's easy to use!
var gulp = ;var lbInclude = ;gulp;
You can also
npm install and use
gulp-plumber to tidily log
any errors that might get emitted, instead of having to trap and log them yourself:
var gulp = ;var plumber = ;var lbInclude = ;gulp;
You can pass an optional configuration object, which will be passed through to
You can pass any option supported by
lb-include (see the documentation for
for the entire list), aside from
fileContents. This plugin will set
fileContents to the file contents provided by
In the examples above, the
gulp.src will be used to resolve root-relative
<!-- #include file="/templates/nav.html" -->
By default, the
base directory in
gulp.src is everything before the
glob pattern (see the README for
glob2base for details).
If you wish to use a different directory for resolving root-relative
#includes, you can do so by passing
root option to
To run the tests, checkout this repo and then
npm install && npm test.
To rerun the tests automatically as you edit files, use
npm run test-watch instead.
Released under the MIT license © Jeffrey Stanton
See LICENSE.md for full license text