{"action":"created","issue":{"url":"https://api.github.com/repos/daffl/can-compile/issues/29","labels_url":"https://api.github.com/repos/daffl/can-compile/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/daffl/can-compile/issues/29/comments","events_url":"https://api.github.com/repos/daffl/can-compile/issues/29/events","html_url":"https://github.com/daffl/can-compile/issues/29","id":54103646,"number":29,"title":"Views compile issue","user":{"login":"cpiock","id":5016620,"avatar_url":"https://avatars.githubusercontent.com/u/5016620?v=3","gravatar_id":"","url":"https://api.github.com/users/cpiock","html_url":"https://github.com/cpiock","followers_url":"https://api.github.com/users/cpiock/followers","following_url":"https://api.github.com/users/cpiock/following{/other_user}","gists_url":"https://api.github.com/users/cpiock/gists{/gist_id}","starred_url":"https://api.github.com/users/cpiock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cpiock/subscriptions","organizations_url":"https://api.github.com/users/cpiock/orgs","repos_url":"https://api.github.com/users/cpiock/repos","events_url":"https://api.github.com/users/cpiock/events{/privacy}","received_events_url":"https://api.github.com/users/cpiock/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-01-12T20:39:48Z","updated_at":"2015-01-13T10:35:22Z","closed_at":null,"body":"I compile my views with this\r\n\r\n```js\r\n cancompile: {\r\n      options: {\r\n        version: '2.1.1'\r\n      },\r\n      dist: {        \r\n        src: ['**/*.mustache'],\r\n        dest: 'production/views.production.js'\r\n      }\r\n    },\r\n```\r\n\r\nand concat it with this\r\n\r\n```js\r\nconcat: {\r\n      dist: {\r\n          src: [\r\n          'bower_components/jquery/dist/jquery.js',\r\n          'bower_components/canjs/can.jquery.js',\r\n          'bower_components/bootstrap/dist/js/bootstrap.js',\r\n          //'js/**/*.js'\r\n              'js/models/placetype.js',\r\n              'js/models/place.js',\r\n              'js/components/place/filter/filter.js',\r\n              'js/components/place/list/list.js',\r\n              'js/components/place/item/item.js',\r\n              'js/components/placetype/filter/filter.js',\r\n              'js/components/place/map/map.js',\r\n              'js/pages/test/home/home.js',\r\n              'js/pages/test/place/place.js',\r\n              'js/pages/home/home.js',\r\n              'js/pages/about/about.js',\r\n              'js/pages/place/place.js',\r\n          'js/app.js', // You app\r\n          '<%= cancompile.dist.dest %>' // The compiled views\r\n        ],\r\n        dest: 'production/production.js'\r\n      }\r\n```\r\n\r\nBut if i run my app with the created production.js it tell's me \"can.view: No template or empty template\"\r\n\r\nHere an example of a controller:\r\n\r\n```\r\n    can.Component.extend({\r\n        tag: 'placetypefilter',\r\n        template: can.view('js/components/placetype/filter/views/filter.mustache'),\r\n```\r\n\r\nIn the views.production.js i have code like this:\r\n\r\n```\r\ncan.view.preloadStringRenderer('\\js\\components\\place\\filter\\views\\filter_mustache', .....\r\n```\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/daffl/can-compile/issues/comments/69725183","html_url":"https://github.com/daffl/can-compile/issues/29#issuecomment-69725183","issue_url":"https://api.github.com/repos/daffl/can-compile/issues/29","id":69725183,"user":{"login":"cpiock","id":5016620,"avatar_url":"https://avatars.githubusercontent.com/u/5016620?v=3","gravatar_id":"","url":"https://api.github.com/users/cpiock","html_url":"https://github.com/cpiock","followers_url":"https://api.github.com/users/cpiock/followers","following_url":"https://api.github.com/users/cpiock/following{/other_user}","gists_url":"https://api.github.com/users/cpiock/gists{/gist_id}","starred_url":"https://api.github.com/users/cpiock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cpiock/subscriptions","organizations_url":"https://api.github.com/users/cpiock/orgs","repos_url":"https://api.github.com/users/cpiock/repos","events_url":"https://api.github.com/users/cpiock/events{/privacy}","received_events_url":"https://api.github.com/users/cpiock/received_events","type":"User","site_admin":false},"created_at":"2015-01-13T10:35:22Z","updated_at":"2015-01-13T10:35:22Z","body":"oh i think i found the problem. :-)\r\nthe normalizer was in the wrong place\r\n\r\ncancompile: {\r\n      options: {\r\n          version: '2.1.1',\r\n          normalizer: function (filename) {\r\n              return filename.replace(new RegExp(path.sep, 'g'), '/');\r\n          },\r\n      },    \r\n      dist: {        \r\n        src: ['**/*.mustache'],\r\n        dest: 'production/views.production.js'\r\n      }\r\n    },"}}