{"action":"opened","issue":{"url":"https://api.github.com/repos/framework7io/Framework7/issues/1816","repository_url":"https://api.github.com/repos/framework7io/Framework7","labels_url":"https://api.github.com/repos/framework7io/Framework7/issues/1816/labels{/name}","comments_url":"https://api.github.com/repos/framework7io/Framework7/issues/1816/comments","events_url":"https://api.github.com/repos/framework7io/Framework7/issues/1816/events","html_url":"https://github.com/framework7io/Framework7/issues/1816","id":259604939,"number":1816,"title":"[v2] .asyncTemplate() and Others template strategies","user":{"login":"russiann","id":4403429,"avatar_url":"https://avatars1.githubusercontent.com/u/4403429?v=4","gravatar_id":"","url":"https://api.github.com/users/russiann","html_url":"https://github.com/russiann","followers_url":"https://api.github.com/users/russiann/followers","following_url":"https://api.github.com/users/russiann/following{/other_user}","gists_url":"https://api.github.com/users/russiann/gists{/gist_id}","starred_url":"https://api.github.com/users/russiann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/russiann/subscriptions","organizations_url":"https://api.github.com/users/russiann/orgs","repos_url":"https://api.github.com/users/russiann/repos","events_url":"https://api.github.com/users/russiann/events{/privacy}","received_events_url":"https://api.github.com/users/russiann/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-09-21T19:24:48Z","updated_at":"2017-09-21T19:24:48Z","closed_at":null,"author_association":"NONE","body":"This is a enhancement\r\n\r\nActually I need something like this:\r\n```js\r\ncomponent: {\r\n  asyncTemplate: (render) => {\r\n    request(...)\r\n       .then(html => {\r\n         render(html)\r\n       })\r\n  }\r\n}\r\n```\r\n\r\nThere any way to exists this method?\r\n\r\nOther idea is allow to return dom elements in `.render()` or/and `.template()` methods like this:\r\n\r\n```js\r\ncomponent: {\r\n  render: () => {\r\n    return domElement\r\n  },\r\n  // or\r\n  render: domElement\r\n}\r\n```\r\nThis would be awesome because allows developers to uses libs like `jsx-dom` or `vhtml` and do something beautiful like this:\r\n\r\n```js\r\ncomponent: {\r\n  render: () => {\r\n    return (\r\n      <div class=\"page\">\r\n        <div class=\"page-content\">\r\n          {items.map(item, =>\r\n            <div class=\"whatever\"></div>\r\n          )}\r\n        </div>\r\n      </div>\r\n    )\r\n  },\r\n}\r\n```"}}
{"actor":{"display_login":"russiann"}}