{"action":"created","issue":{"url":"https://api.github.com/repos/marko-js/marko/issues/251","repository_url":"https://api.github.com/repos/marko-js/marko","labels_url":"https://api.github.com/repos/marko-js/marko/issues/251/labels{/name}","comments_url":"https://api.github.com/repos/marko-js/marko/issues/251/comments","events_url":"https://api.github.com/repos/marko-js/marko/issues/251/events","html_url":"https://github.com/marko-js/marko/issues/251","id":142114814,"number":251,"title":"Output of render should be Promise-compatible","user":{"login":"DylanPiercey","id":4985201,"avatar_url":"https://avatars.githubusercontent.com/u/4985201?v=3","gravatar_id":"","url":"https://api.github.com/users/DylanPiercey","html_url":"https://github.com/DylanPiercey","followers_url":"https://api.github.com/users/DylanPiercey/followers","following_url":"https://api.github.com/users/DylanPiercey/following{/other_user}","gists_url":"https://api.github.com/users/DylanPiercey/gists{/gist_id}","starred_url":"https://api.github.com/users/DylanPiercey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DylanPiercey/subscriptions","organizations_url":"https://api.github.com/users/DylanPiercey/orgs","repos_url":"https://api.github.com/users/DylanPiercey/repos","events_url":"https://api.github.com/users/DylanPiercey/events{/privacy}","received_events_url":"https://api.github.com/users/DylanPiercey/received_events","type":"User","site_admin":false},"labels":[{"id":408934671,"url":"https://api.github.com/repos/marko-js/marko/labels/difficulty:bite-sized","name":"difficulty:bite-sized","color":"aabbcc","default":false},{"id":408933947,"url":"https://api.github.com/repos/marko-js/marko/labels/scope:runtime","name":"scope:runtime","color":"eebb00","default":false},{"id":296638047,"url":"https://api.github.com/repos/marko-js/marko/labels/status:confirmed","name":"status:confirmed","color":"5599cc","default":false},{"id":73845949,"url":"https://api.github.com/repos/marko-js/marko/labels/type:enhancement","name":"type:enhancement","color":"0099dd","default":false}],"state":"open","locked":false,"assignee":{"login":"austinkelleher","id":3771924,"avatar_url":"https://avatars.githubusercontent.com/u/3771924?v=3","gravatar_id":"","url":"https://api.github.com/users/austinkelleher","html_url":"https://github.com/austinkelleher","followers_url":"https://api.github.com/users/austinkelleher/followers","following_url":"https://api.github.com/users/austinkelleher/following{/other_user}","gists_url":"https://api.github.com/users/austinkelleher/gists{/gist_id}","starred_url":"https://api.github.com/users/austinkelleher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/austinkelleher/subscriptions","organizations_url":"https://api.github.com/users/austinkelleher/orgs","repos_url":"https://api.github.com/users/austinkelleher/repos","events_url":"https://api.github.com/users/austinkelleher/events{/privacy}","received_events_url":"https://api.github.com/users/austinkelleher/received_events","type":"User","site_admin":false},"assignees":[{"login":"austinkelleher","id":3771924,"avatar_url":"https://avatars.githubusercontent.com/u/3771924?v=3","gravatar_id":"","url":"https://api.github.com/users/austinkelleher","html_url":"https://github.com/austinkelleher","followers_url":"https://api.github.com/users/austinkelleher/followers","following_url":"https://api.github.com/users/austinkelleher/following{/other_user}","gists_url":"https://api.github.com/users/austinkelleher/gists{/gist_id}","starred_url":"https://api.github.com/users/austinkelleher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/austinkelleher/subscriptions","organizations_url":"https://api.github.com/users/austinkelleher/orgs","repos_url":"https://api.github.com/users/austinkelleher/repos","events_url":"https://api.github.com/users/austinkelleher/events{/privacy}","received_events_url":"https://api.github.com/users/austinkelleher/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/marko-js/marko/milestones/2","html_url":"https://github.com/marko-js/marko/milestones/4.0","labels_url":"https://api.github.com/repos/marko-js/marko/milestones/2/labels","id":1951880,"number":2,"title":"4.0","description":"Marko v4 release\r\n\r\n## Removed deprecations\r\n\r\n- Reading hyphenated properties\r\n- Removed `empty`/`notEmpty` helpers","creator":{"login":"patrick-steele-idem","id":978214,"avatar_url":"https://avatars.githubusercontent.com/u/978214?v=3","gravatar_id":"","url":"https://api.github.com/users/patrick-steele-idem","html_url":"https://github.com/patrick-steele-idem","followers_url":"https://api.github.com/users/patrick-steele-idem/followers","following_url":"https://api.github.com/users/patrick-steele-idem/following{/other_user}","gists_url":"https://api.github.com/users/patrick-steele-idem/gists{/gist_id}","starred_url":"https://api.github.com/users/patrick-steele-idem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patrick-steele-idem/subscriptions","organizations_url":"https://api.github.com/users/patrick-steele-idem/orgs","repos_url":"https://api.github.com/users/patrick-steele-idem/repos","events_url":"https://api.github.com/users/patrick-steele-idem/events{/privacy}","received_events_url":"https://api.github.com/users/patrick-steele-idem/received_events","type":"User","site_admin":false},"open_issues":24,"closed_issues":9,"state":"open","created_at":"2016-08-19T15:51:58Z","updated_at":"2016-11-10T22:06:30Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2016-03-20T00:29:56Z","updated_at":"2016-11-11T14:51:09Z","closed_at":null,"body":"Currently rendering a template returns an `AsyncWriter`, it would be handy though if when a callback is omitted that templates render function returned a promise.\n\n``` js\nvar template = require(\"template.marko\");\n\ntemplate.render({ hello: \"world\" })\n    .then(function (html) { ... })\n    .catch(function (err) { ... });\n```\n\nIf you're using promises already it makes using marko a bit easier.\n"},"comment":{"url":"https://api.github.com/repos/marko-js/marko/issues/comments/259973069","html_url":"https://github.com/marko-js/marko/issues/251#issuecomment-259973069","issue_url":"https://api.github.com/repos/marko-js/marko/issues/251","id":259973069,"user":{"login":"patrick-steele-idem","id":978214,"avatar_url":"https://avatars.githubusercontent.com/u/978214?v=3","gravatar_id":"","url":"https://api.github.com/users/patrick-steele-idem","html_url":"https://github.com/patrick-steele-idem","followers_url":"https://api.github.com/users/patrick-steele-idem/followers","following_url":"https://api.github.com/users/patrick-steele-idem/following{/other_user}","gists_url":"https://api.github.com/users/patrick-steele-idem/gists{/gist_id}","starred_url":"https://api.github.com/users/patrick-steele-idem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patrick-steele-idem/subscriptions","organizations_url":"https://api.github.com/users/patrick-steele-idem/orgs","repos_url":"https://api.github.com/users/patrick-steele-idem/repos","events_url":"https://api.github.com/users/patrick-steele-idem/events{/privacy}","received_events_url":"https://api.github.com/users/patrick-steele-idem/received_events","type":"User","site_admin":false},"created_at":"2016-11-11T14:51:09Z","updated_at":"2016-11-11T14:51:09Z","body":"NOTE: We want to follow the rules for having a consistent rendering API: https://github.com/marko-js/marko/issues/389\r\n\r\nThat is:\r\n\r\n```javascript\r\ntemplate.render({})\r\n    .then(function(out) {\r\n        out.appendTo(document.body);\r\n    });\r\n```"}}
{"actor":{"display_login":"patrick-steele-idem"}}