sindresorhus / gulp-template

Render/precompile Lodash templates

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

to accept glob functionality

pajooh opened this issue · comments

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?

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