{"action":"created","issue":{"url":"https://api.github.com/repos/jimmycuadra/lita/issues/66","labels_url":"https://api.github.com/repos/jimmycuadra/lita/issues/66/labels{/name}","comments_url":"https://api.github.com/repos/jimmycuadra/lita/issues/66/comments","events_url":"https://api.github.com/repos/jimmycuadra/lita/issues/66/events","html_url":"https://github.com/jimmycuadra/lita/issues/66","id":46982913,"number":66,"title":"Enable rich (html) messages","user":{"login":"apsoto","id":11692,"avatar_url":"https://avatars.githubusercontent.com/u/11692?v=3","gravatar_id":"","url":"https://api.github.com/users/apsoto","html_url":"https://github.com/apsoto","followers_url":"https://api.github.com/users/apsoto/followers","following_url":"https://api.github.com/users/apsoto/following{/other_user}","gists_url":"https://api.github.com/users/apsoto/gists{/gist_id}","starred_url":"https://api.github.com/users/apsoto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apsoto/subscriptions","organizations_url":"https://api.github.com/users/apsoto/orgs","repos_url":"https://api.github.com/users/apsoto/repos","events_url":"https://api.github.com/users/apsoto/events{/privacy}","received_events_url":"https://api.github.com/users/apsoto/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jimmycuadra/lita/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2014-10-28T02:26:31Z","updated_at":"2015-01-30T22:14:29Z","closed_at":"2015-01-30T21:34:44Z","body":"sparked from the conversation at jimmycuadra/lita-hipchat#7.\r\n\r\nTo allow plugins to provide adapter specific rich formatted messages we can borrow the Rails pattern for view templates.\r\n\r\nThe plugin can provide templates that follow the pattern: HANDLER.ROUTE.ADAPTER.erb, where:\r\n\r\nHANDLER = registered handler class name\r\nROUTE = the method symbol passed to #route\r\nADAPTER = the adapter name (hipchat, slack, shell, etc)\r\n\r\nFor example, the lita-jira plugin can provide hipchat and slack specific templates like so:\r\n```\r\njira.issue_details.hipchat.erb\r\njira.issue_details.slack.erb\r\n```\r\nIf the argument sent to `Response#reply` is a hash, it's the context variables to use in a template, otherwise fall back to old behavior which is a text message\r\n\r\nIf the adapter being used doesn't have a template, then the hash should provide a fallback message string which would be the same message string that's passed now.\r\n\r\nThis would allow plugin authors to provide rich response templates, but existing ones continue to work sending plain text."},"comment":{"url":"https://api.github.com/repos/jimmycuadra/lita/issues/comments/72279679","html_url":"https://github.com/jimmycuadra/lita/issues/66#issuecomment-72279679","issue_url":"https://api.github.com/repos/jimmycuadra/lita/issues/66","id":72279679,"user":{"login":"apsoto","id":11692,"avatar_url":"https://avatars.githubusercontent.com/u/11692?v=3","gravatar_id":"","url":"https://api.github.com/users/apsoto","html_url":"https://github.com/apsoto","followers_url":"https://api.github.com/users/apsoto/followers","following_url":"https://api.github.com/users/apsoto/following{/other_user}","gists_url":"https://api.github.com/users/apsoto/gists{/gist_id}","starred_url":"https://api.github.com/users/apsoto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apsoto/subscriptions","organizations_url":"https://api.github.com/users/apsoto/orgs","repos_url":"https://api.github.com/users/apsoto/repos","events_url":"https://api.github.com/users/apsoto/events{/privacy}","received_events_url":"https://api.github.com/users/apsoto/received_events","type":"User","site_admin":false},"created_at":"2015-01-30T22:14:29Z","updated_at":"2015-01-30T22:14:29Z","body":"great, can't wait to try it out.  "}}