{"action":"created","issue":{"url":"https://api.github.com/repos/marklagendijk/gulp-ng-html2js/issues/22","labels_url":"https://api.github.com/repos/marklagendijk/gulp-ng-html2js/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/marklagendijk/gulp-ng-html2js/issues/22/comments","events_url":"https://api.github.com/repos/marklagendijk/gulp-ng-html2js/issues/22/events","html_url":"https://github.com/marklagendijk/gulp-ng-html2js/issues/22","id":125712350,"number":22,"title":"Multiple Prefixes & Sources","user":{"login":"slopesidecreative","id":2295273,"avatar_url":"https://avatars.githubusercontent.com/u/2295273?v=3","gravatar_id":"","url":"https://api.github.com/users/slopesidecreative","html_url":"https://github.com/slopesidecreative","followers_url":"https://api.github.com/users/slopesidecreative/followers","following_url":"https://api.github.com/users/slopesidecreative/following{/other_user}","gists_url":"https://api.github.com/users/slopesidecreative/gists{/gist_id}","starred_url":"https://api.github.com/users/slopesidecreative/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slopesidecreative/subscriptions","organizations_url":"https://api.github.com/users/slopesidecreative/orgs","repos_url":"https://api.github.com/users/slopesidecreative/repos","events_url":"https://api.github.com/users/slopesidecreative/events{/privacy}","received_events_url":"https://api.github.com/users/slopesidecreative/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-08T23:02:15Z","updated_at":"2016-01-09T02:11:48Z","closed_at":"2016-01-09T02:11:48Z","body":"Awesome plugin - thank you. I'm working to output a single file with all the files from one directory, and select files from another, and output them with the correct prefixes. I don't want all the files in each directory as in the example. The closest I've gotten is using filter, however all the files end up with same prefix, 'views/includes/'. \r\n\r\nI'd appreciate any ideas to join sources with different prefixes. Thank you. \r\n\r\ntemplatesources is a directory, 'views'\r\nt2, t3, etc are paths to specific files in 'views/includes'\r\n``` javascript\r\n  var filter = gulpFilter([templatesources],{restore:true});\r\n\r\n  gulp.src([templatesources,t2,t3,t4,t5,t6,t7])\r\n  .pipe(filter)\r\n  .pipe(minifyHtml(\r\n    {\r\n    empty: true,\r\n    spare: true,\r\n    quotes: true\r\n  }))\r\n  .pipe(ngHtml2Js({\r\n    moduleName: 'xApp',\r\n    prefix: 'views/'\r\n  }))\r\n  .pipe(filter.restore)\r\n  .pipe(minifyHtml(\r\n    {\r\n    empty: true,\r\n    spare: true,\r\n    quotes: true\r\n  }))\r\n  .pipe(ngHtml2Js({\r\n    moduleName: 'xApp',\r\n    prefix: 'views/includes/'\r\n  }))\r\n  .pipe(concat('templates.js'))\r\n  .pipe(cachebust.resources())\r\n  .pipe(cachebust.references())\r\n  // write the file\r\n  .pipe(gulp.dest(destPath));\r\n```"},"comment":{"url":"https://api.github.com/repos/marklagendijk/gulp-ng-html2js/issues/comments/170180820","html_url":"https://github.com/marklagendijk/gulp-ng-html2js/issues/22#issuecomment-170180820","issue_url":"https://api.github.com/repos/marklagendijk/gulp-ng-html2js/issues/22","id":170180820,"user":{"login":"marklagendijk","id":1188039,"avatar_url":"https://avatars.githubusercontent.com/u/1188039?v=3","gravatar_id":"","url":"https://api.github.com/users/marklagendijk","html_url":"https://github.com/marklagendijk","followers_url":"https://api.github.com/users/marklagendijk/followers","following_url":"https://api.github.com/users/marklagendijk/following{/other_user}","gists_url":"https://api.github.com/users/marklagendijk/gists{/gist_id}","starred_url":"https://api.github.com/users/marklagendijk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marklagendijk/subscriptions","organizations_url":"https://api.github.com/users/marklagendijk/orgs","repos_url":"https://api.github.com/users/marklagendijk/repos","events_url":"https://api.github.com/users/marklagendijk/events{/privacy}","received_events_url":"https://api.github.com/users/marklagendijk/received_events","type":"User","site_admin":false},"created_at":"2016-01-09T02:11:48Z","updated_at":"2016-01-09T02:11:48Z","body":"You can use the [rename](https://github.com/marklagendijk/gulp-ng-html2js#optionsrename) option for this."}}