{"action":"opened","issue":{"url":"https://api.github.com/repos/radiasoft/sirepo/issues/331","repository_url":"https://api.github.com/repos/radiasoft/sirepo","labels_url":"https://api.github.com/repos/radiasoft/sirepo/issues/331/labels{/name}","comments_url":"https://api.github.com/repos/radiasoft/sirepo/issues/331/comments","events_url":"https://api.github.com/repos/radiasoft/sirepo/issues/331/events","html_url":"https://github.com/radiasoft/sirepo/issues/331","id":174385021,"number":331,"title":"Normalize formatUrl templating","user":{"login":"robnagler","id":5495179,"avatar_url":"https://avatars.githubusercontent.com/u/5495179?v=3","gravatar_id":"","url":"https://api.github.com/users/robnagler","html_url":"https://github.com/robnagler","followers_url":"https://api.github.com/users/robnagler/followers","following_url":"https://api.github.com/users/robnagler/following{/other_user}","gists_url":"https://api.github.com/users/robnagler/gists{/gist_id}","starred_url":"https://api.github.com/users/robnagler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robnagler/subscriptions","organizations_url":"https://api.github.com/users/robnagler/orgs","repos_url":"https://api.github.com/users/robnagler/repos","events_url":"https://api.github.com/users/robnagler/events{/privacy}","received_events_url":"https://api.github.com/users/robnagler/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-31T21:36:08Z","updated_at":"2016-08-31T21:36:08Z","closed_at":null,"body":"The local map uses ':foo' and the global map uses '<foo>'. The caller for formatUrl needs to know which map its using. \r\n\r\nRather, caller should specify 'foo' as a keyword, and the formatter will take care of putting in the prefix/postfix chars, e.g. \r\n\r\n```javascript\r\nformatUrl('simulationData', {\r\n    simulationId: simulationId(),\r\n    simulationType: SIREPO.APP_SCHEMA.simulationType,\r\n})\r\n```\r\n\r\nThe route template should also check for the existence of the specified keyword. In this sense, the `<>` syntax is better, because it avoids false positives, e.g. 'simulation' would not match 'simulationId'.\r\n"}}
{"actor":{"display_login":"robnagler"}}