{"action":"created","issue":{"url":"https://api.github.com/repos/zalando/tailor/issues/26","repository_url":"https://api.github.com/repos/zalando/tailor","labels_url":"https://api.github.com/repos/zalando/tailor/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/zalando/tailor/issues/26/comments","events_url":"https://api.github.com/repos/zalando/tailor/issues/26/events","html_url":"https://github.com/zalando/tailor/issues/26","id":134102399,"number":26,"title":"Support for web component style fragments","user":{"login":"naltatis","id":152287,"avatar_url":"https://avatars.githubusercontent.com/u/152287?v=3","gravatar_id":"","url":"https://api.github.com/users/naltatis","html_url":"https://github.com/naltatis","followers_url":"https://api.github.com/users/naltatis/followers","following_url":"https://api.github.com/users/naltatis/following{/other_user}","gists_url":"https://api.github.com/users/naltatis/gists{/gist_id}","starred_url":"https://api.github.com/users/naltatis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/naltatis/subscriptions","organizations_url":"https://api.github.com/users/naltatis/orgs","repos_url":"https://api.github.com/users/naltatis/repos","events_url":"https://api.github.com/users/naltatis/events{/privacy}","received_events_url":"https://api.github.com/users/naltatis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-02-16T21:32:04Z","updated_at":"2016-02-17T11:39:04Z","closed_at":null,"body":"Hi,\r\n\r\nreally like your project. I was planning to build something very similar but luckily found this :)\r\nI would like to compose the structure of my site out of web components that do their rendering client side. But I want the option to deliver the critical components prerenderd from the server (i.e. through universal js). This part is very similar to your fragment loading, but requires a slightliy different syntax:\r\n\r\n    <my-component name=\"alice\" prerender></my-component>\r\n\r\nThis will call the backend with an url like this `http://localhost:9000/my/component?name=hello` and insert the respone body (`<h1>Hello Alice!</h1>`) into the component.\r\n\r\n    <my-component name=\"alice\">\r\n      <h1>Hello Alice!</h1>\r\n    </my-component>\r\n\r\nTo implement this, the following things have to be addressed:\r\n\r\n1. identify fragments by attribute (i.e. `prerender`)\r\n2. don't transform the fragment tag into a div\r\n3. provide a way to translate a tag name and attributes to a url (mapping / resolve function)\r\n\r\nDo you think this is something that fits into the project?\r\nI would like to contribute and work on this topics.\r\n\r\n\\ naltatis"},"comment":{"url":"https://api.github.com/repos/zalando/tailor/issues/comments/185165236","html_url":"https://github.com/zalando/tailor/issues/26#issuecomment-185165236","issue_url":"https://api.github.com/repos/zalando/tailor/issues/26","id":185165236,"user":{"login":"naltatis","id":152287,"avatar_url":"https://avatars.githubusercontent.com/u/152287?v=3","gravatar_id":"","url":"https://api.github.com/users/naltatis","html_url":"https://github.com/naltatis","followers_url":"https://api.github.com/users/naltatis/followers","following_url":"https://api.github.com/users/naltatis/following{/other_user}","gists_url":"https://api.github.com/users/naltatis/gists{/gist_id}","starred_url":"https://api.github.com/users/naltatis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/naltatis/subscriptions","organizations_url":"https://api.github.com/users/naltatis/orgs","repos_url":"https://api.github.com/users/naltatis/repos","events_url":"https://api.github.com/users/naltatis/events{/privacy}","received_events_url":"https://api.github.com/users/naltatis/received_events","type":"User","site_admin":false},"created_at":"2016-02-17T11:39:04Z","updated_at":"2016-02-17T11:39:04Z","body":"Ok, I guess I have to look deeper in how `handleTag` works and what it does :)\r\n\r\nCurrently I don't have a good api suggestion, but I will experiment with is and let you know."}}