{"action":"closed","issue":{"url":"https://api.github.com/repos/canjs/can-ssr/issues/88","labels_url":"https://api.github.com/repos/canjs/can-ssr/issues/88/labels{/name}","comments_url":"https://api.github.com/repos/canjs/can-ssr/issues/88/comments","events_url":"https://api.github.com/repos/canjs/can-ssr/issues/88/events","html_url":"https://github.com/canjs/can-ssr/issues/88","id":117862402,"number":88,"title":"New module for importing a page","user":{"login":"matthewp","id":361671,"avatar_url":"https://avatars.githubusercontent.com/u/361671?v=3","gravatar_id":"","url":"https://api.github.com/users/matthewp","html_url":"https://github.com/matthewp","followers_url":"https://api.github.com/users/matthewp/followers","following_url":"https://api.github.com/users/matthewp/following{/other_user}","gists_url":"https://api.github.com/users/matthewp/gists{/gist_id}","starred_url":"https://api.github.com/users/matthewp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthewp/subscriptions","organizations_url":"https://api.github.com/users/matthewp/orgs","repos_url":"https://api.github.com/users/matthewp/repos","events_url":"https://api.github.com/users/matthewp/events{/privacy}","received_events_url":"https://api.github.com/users/matthewp/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/canjs/can-ssr/milestones/2","html_url":"https://github.com/canjs/can-ssr/milestones/0.10.0","labels_url":"https://api.github.com/repos/canjs/can-ssr/milestones/2/labels","id":1419935,"number":2,"title":"0.10.0","description":"","creator":{"login":"matthewp","id":361671,"avatar_url":"https://avatars.githubusercontent.com/u/361671?v=3","gravatar_id":"","url":"https://api.github.com/users/matthewp","html_url":"https://github.com/matthewp","followers_url":"https://api.github.com/users/matthewp/followers","following_url":"https://api.github.com/users/matthewp/following{/other_user}","gists_url":"https://api.github.com/users/matthewp/gists{/gist_id}","starred_url":"https://api.github.com/users/matthewp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthewp/subscriptions","organizations_url":"https://api.github.com/users/matthewp/orgs","repos_url":"https://api.github.com/users/matthewp/repos","events_url":"https://api.github.com/users/matthewp/events{/privacy}","received_events_url":"https://api.github.com/users/matthewp/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":4,"state":"open","created_at":"2015-11-19T14:48:33Z","updated_at":"2015-11-29T15:41:06Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2015-11-19T17:19:19Z","updated_at":"2015-11-29T15:41:06Z","closed_at":"2015-11-29T15:41:06Z","body":"Still unsure of how I should do this, but we need a module specifically for importing a page. It's like System.import but will also call canWait.data so that ssr knows what page we are visit.  For example if you are visiting the **orders** page this module would call `canWait.data({ page: \"pmo/orders\" })`.  We will use that information to know which CSS to response with.\r\n\r\nI'm thinking of an API like this:\r\n\r\n```js\r\nvar importPage = require(\"can-import-page\");\r\n\r\nimportPage(\"pmo/orders\").then(function(){\r\n\r\n});\r\n```\r\n\r\nIt will call loader.import under the hood."}}