{"action":"created","issue":{"url":"https://api.github.com/repos/miickel/gulp-angular-templatecache/issues/83","labels_url":"https://api.github.com/repos/miickel/gulp-angular-templatecache/issues/83/labels{/name}","comments_url":"https://api.github.com/repos/miickel/gulp-angular-templatecache/issues/83/comments","events_url":"https://api.github.com/repos/miickel/gulp-angular-templatecache/issues/83/events","html_url":"https://github.com/miickel/gulp-angular-templatecache/issues/83","id":78004949,"number":83,"title":"on generation, second file's templateFooter becomes \".no\"","user":{"login":"maxmarkus","id":1720843,"avatar_url":"https://avatars.githubusercontent.com/u/1720843?v=3","gravatar_id":"","url":"https://api.github.com/users/maxmarkus","html_url":"https://github.com/maxmarkus","followers_url":"https://api.github.com/users/maxmarkus/followers","following_url":"https://api.github.com/users/maxmarkus/following{/other_user}","gists_url":"https://api.github.com/users/maxmarkus/gists{/gist_id}","starred_url":"https://api.github.com/users/maxmarkus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxmarkus/subscriptions","organizations_url":"https://api.github.com/users/maxmarkus/orgs","repos_url":"https://api.github.com/users/maxmarkus/repos","events_url":"https://api.github.com/users/maxmarkus/events{/privacy}","received_events_url":"https://api.github.com/users/maxmarkus/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-05-19T09:10:54Z","updated_at":"2015-05-24T11:05:10Z","closed_at":"2015-05-24T11:05:10Z","body":"We've got a really strange problem here, the angular.module ending of the second processed file is suddenly **.no**  instead of **);**\r\nSometimes it works, but sometimes not. Cannot really reproduce it, seems more to be a bit of luck.\r\n\r\nOutcome:\r\n```html\r\n... <div data-ng-if=\\\"registerevent === \\'success\\'\\\" data-ng-include=\\\"\\'public/js/app/account/templates/response.html\\'\\\">\\n    </div>\\n  </article>\\n</div>\".no\r\n$templateCache.put(\"public/js/app/account/templates/create-project.html\",\"<div class=\\\"marketplace project\\\">\\n    <article id=\\\"page\\\" class=\\\"page container-fluid\\\">\\n        \r\n```\r\n\r\nImplementation\r\n```\r\n// Gulp task for creating template cache\r\ngulp.task('html2js', function() {\r\n    var config = {\r\n\t    htmltemplates: bases.dev + paths.js + 'app/**/*.html',\r\n\t    templateCache: {\r\n\t        file: 'templates.js',\r\n\t        options: {\r\n\t            module: 'ds.templates',\r\n\t            root: 'public/js/app/',\r\n\t            standalone: true\r\n\t        }\r\n\t    }\r\n\t};\r\n    return gulp\r\n        .src(config.htmltemplates)\r\n        .pipe(plumber({\r\n            errorHandler: onError\r\n        }))\r\n        .pipe(templateCache(\r\n            config.templateCache.file,\r\n            config.templateCache.options\r\n        ))\r\n        .pipe(plumber.stop())\r\n        .pipe(gulp.dest(bases.tmp));\r\n});\r\n```\r\n\r\nVersions:\r\ngulp-angular-templatecache: 1.6.0\r\ngulp: 3.8.8\r\nnode: 0.12.0\r\n\r\nAny ideas how to tackle that thing? \r\n\r\nRegards, Markus"},"comment":{"url":"https://api.github.com/repos/miickel/gulp-angular-templatecache/issues/comments/105001654","html_url":"https://github.com/miickel/gulp-angular-templatecache/issues/83#issuecomment-105001654","issue_url":"https://api.github.com/repos/miickel/gulp-angular-templatecache/issues/83","id":105001654,"user":{"login":"miickel","id":1155441,"avatar_url":"https://avatars.githubusercontent.com/u/1155441?v=3","gravatar_id":"","url":"https://api.github.com/users/miickel","html_url":"https://github.com/miickel","followers_url":"https://api.github.com/users/miickel/followers","following_url":"https://api.github.com/users/miickel/following{/other_user}","gists_url":"https://api.github.com/users/miickel/gists{/gist_id}","starred_url":"https://api.github.com/users/miickel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miickel/subscriptions","organizations_url":"https://api.github.com/users/miickel/orgs","repos_url":"https://api.github.com/users/miickel/repos","events_url":"https://api.github.com/users/miickel/events{/privacy}","received_events_url":"https://api.github.com/users/miickel/received_events","type":"User","site_admin":false},"created_at":"2015-05-24T11:05:10Z","updated_at":"2015-05-24T11:05:10Z","body":"Ok, thanks for the info!"}}