sindresorhus / gulp-template

Render/precompile Lodash templates
MIT License
289 stars 77 forks source link

to accept glob functionality #5

Closed pajooh closed 10 years ago

pajooh commented 10 years ago

i have something like:

  gulp.src("src/index.html")
    .pipe(template({scripts: [ "src/**/*.js","!src/assets/**/*.js" ]}))
    .pipe(gulp.dest("dest/index.html"));

template can not understand glob pattern matching (**) what can i do? can it be a feature request or i should handle this issue in another way?

sindresorhus commented 10 years ago

It only passes it to Lodash. But you can simply use glob.