{"action":"opened","issue":{"url":"https://api.github.com/repos/iron-meteor/iron-router/issues/1533","repository_url":"https://api.github.com/repos/iron-meteor/iron-router","labels_url":"https://api.github.com/repos/iron-meteor/iron-router/issues/1533/labels{/name}","comments_url":"https://api.github.com/repos/iron-meteor/iron-router/issues/1533/comments","events_url":"https://api.github.com/repos/iron-meteor/iron-router/issues/1533/events","html_url":"https://github.com/iron-meteor/iron-router/issues/1533","id":151817560,"number":1533,"title":"Creating package using iron:router","user":{"login":"rolljee","id":10114634,"avatar_url":"https://avatars.githubusercontent.com/u/10114634?v=3","gravatar_id":"","url":"https://api.github.com/users/rolljee","html_url":"https://github.com/rolljee","followers_url":"https://api.github.com/users/rolljee/followers","following_url":"https://api.github.com/users/rolljee/following{/other_user}","gists_url":"https://api.github.com/users/rolljee/gists{/gist_id}","starred_url":"https://api.github.com/users/rolljee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rolljee/subscriptions","organizations_url":"https://api.github.com/users/rolljee/orgs","repos_url":"https://api.github.com/users/rolljee/repos","events_url":"https://api.github.com/users/rolljee/events{/privacy}","received_events_url":"https://api.github.com/users/rolljee/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-29T08:30:10Z","updated_at":"2016-04-29T08:30:10Z","closed_at":null,"body":"i ran into a problem that i still don't understand... using iron:router inside a package (using meteor 1.3) \r\n\r\nIndeed, when i start my application this is shown in the web.browser\r\n\r\n> Couldn't find a template named \"home\" or \"home\". Are you sure you defined it?\r\n\r\nThis is the package.js file i wrote so far\r\n    \r\n    Package.onUse(function(api) {\r\n        api.versionsFrom('1.3.2.4');\r\n        api.use(['templating'], 'client');\r\n        api.use([\r\n            'iron:router@1.0.12',\r\n            'fortawesome:fontawesome',\r\n            'momentjs:moment',\r\n            'materialize:materialize',\r\n        ], ['client']);\r\n    \r\n        api.addFiles('javascript/routes.js', ['web.browser']);\r\n    \r\n        api.addAssets([\r\n            'view/home.html',\r\n            'stylesheet/main.css',\r\n        ], ['web.browser']);\r\n    });\r\n\r\nand the routes.js file (nothing to complicated here as the Template in the html file) \r\n\r\n    Router.route('/', function () {\r\n      this.render('home');\r\n    });\r\n\r\nI have tested many things aren't working so far, i think i miss something (maybe obvious but.. still).\r\n\r\nCan someone help me ?\r\n\r\nThe whole purpose is to separate my project into 2 packages (one load for web.browser and the other for web.cordova)."}}