{"action":"closed","issue":{"url":"https://api.github.com/repos/snd/url-pattern/issues/11","labels_url":"https://api.github.com/repos/snd/url-pattern/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/snd/url-pattern/issues/11/comments","events_url":"https://api.github.com/repos/snd/url-pattern/issues/11/events","html_url":"https://github.com/snd/url-pattern/issues/11","id":78450734,"number":11,"title":"Not only parse, also generate","user":{"login":"mixtur","id":2968077,"avatar_url":"https://avatars.githubusercontent.com/u/2968077?v=3","gravatar_id":"","url":"https://api.github.com/users/mixtur","html_url":"https://github.com/mixtur","followers_url":"https://api.github.com/users/mixtur/followers","following_url":"https://api.github.com/users/mixtur/following{/other_user}","gists_url":"https://api.github.com/users/mixtur/gists{/gist_id}","starred_url":"https://api.github.com/users/mixtur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mixtur/subscriptions","organizations_url":"https://api.github.com/users/mixtur/orgs","repos_url":"https://api.github.com/users/mixtur/repos","events_url":"https://api.github.com/users/mixtur/events{/privacy}","received_events_url":"https://api.github.com/users/mixtur/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/snd/url-pattern/labels/implementation-complete","name":"implementation-complete","color":"009800"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":17,"created_at":"2015-05-20T09:34:13Z","updated_at":"2015-08-19T19:14:48Z","closed_at":"2015-08-19T19:14:48Z","body":"So basically what your library does is extracting some data structure from url based on certain pattern.\r\nCan you please implement the opposite thing. I mean some method to which you feed data structure and get url string in return.\r\n\r\nSomething like\r\n```javascript\r\nvar pattern = new UrlPattern('/posts/:start/:count/:whatever');\r\nassert(pattern.generate({\r\n  start: 1,\r\n  count: 100,\r\n  whatever: 'whatever'\r\n}) === '/posts/1/100/whatever');\r\n```\r\n\r\nSuch feature would allow (me) to write routers together with History API manipulation in browser quite easily.\r\n"}}