{"action":"created","issue":{"url":"https://api.github.com/repos/reimertz/lagom/issues/5","repository_url":"https://api.github.com/repos/reimertz/lagom","labels_url":"https://api.github.com/repos/reimertz/lagom/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/reimertz/lagom/issues/5/comments","events_url":"https://api.github.com/repos/reimertz/lagom/issues/5/events","html_url":"https://github.com/reimertz/lagom/pull/5","id":180339286,"number":5,"title":"add links around twitter, GitHub, homepage","user":{"login":"Haroenv","id":6270048,"avatar_url":"https://avatars.githubusercontent.com/u/6270048?v=3","gravatar_id":"","url":"https://api.github.com/users/Haroenv","html_url":"https://github.com/Haroenv","followers_url":"https://api.github.com/users/Haroenv/followers","following_url":"https://api.github.com/users/Haroenv/following{/other_user}","gists_url":"https://api.github.com/users/Haroenv/gists{/gist_id}","starred_url":"https://api.github.com/users/Haroenv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Haroenv/subscriptions","organizations_url":"https://api.github.com/users/Haroenv/orgs","repos_url":"https://api.github.com/users/Haroenv/repos","events_url":"https://api.github.com/users/Haroenv/events{/privacy}","received_events_url":"https://api.github.com/users/Haroenv/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-09-30T15:54:34Z","updated_at":"2016-09-30T16:31:09Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/reimertz/lagom/pulls/5","html_url":"https://github.com/reimertz/lagom/pull/5","diff_url":"https://github.com/reimertz/lagom/pull/5.diff","patch_url":"https://github.com/reimertz/lagom/pull/5.patch"},"body":"Also there should be a check around each of them, if the user supplied it (like you do with twitter in the header manually).\r\n\r\nMaybe just use a templating engine like moustache?\r\n\r\nfixes #4"},"comment":{"url":"https://api.github.com/repos/reimertz/lagom/issues/comments/250790582","html_url":"https://github.com/reimertz/lagom/pull/5#issuecomment-250790582","issue_url":"https://api.github.com/repos/reimertz/lagom/issues/5","id":250790582,"user":{"login":"Haroenv","id":6270048,"avatar_url":"https://avatars.githubusercontent.com/u/6270048?v=3","gravatar_id":"","url":"https://api.github.com/users/Haroenv","html_url":"https://github.com/Haroenv","followers_url":"https://api.github.com/users/Haroenv/followers","following_url":"https://api.github.com/users/Haroenv/following{/other_user}","gists_url":"https://api.github.com/users/Haroenv/gists{/gist_id}","starred_url":"https://api.github.com/users/Haroenv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Haroenv/subscriptions","organizations_url":"https://api.github.com/users/Haroenv/orgs","repos_url":"https://api.github.com/users/Haroenv/repos","events_url":"https://api.github.com/users/Haroenv/events{/privacy}","received_events_url":"https://api.github.com/users/Haroenv/received_events","type":"User","site_admin":false},"created_at":"2016-09-30T16:31:09Z","updated_at":"2016-09-30T16:31:09Z","body":"According to https://garann.github.io/template-chooser/, I'd use https://github.com/janl/mustache.js/, since it's Mustache, thus more widely known. Handlebars seems to add more things, but that also makes it complicated. In this case we'd use:\r\n\r\n```html\r\n{#twitter}\r\n  <p>twitter: <a href=\"//twitter.com/{{twitter}}\">{{twitter}}</a></p>\r\n{/twitter}\r\n```\r\n\r\nAs seen [here](https://mustache.github.io/mustache.5.html)\r\n\r\nAsking the render should be like this:\r\n\r\n```js\r\nMustache.render('get this from the index file', {data});\r\n```"}}
{"actor":{"display_login":"Haroenv"}}