{"action":"created","issue":{"url":"https://api.github.com/repos/aurelia/templating/issues/61","labels_url":"https://api.github.com/repos/aurelia/templating/issues/61/labels{/name}","comments_url":"https://api.github.com/repos/aurelia/templating/issues/61/comments","events_url":"https://api.github.com/repos/aurelia/templating/issues/61/events","html_url":"https://github.com/aurelia/templating/issues/61","id":70379357,"number":61,"title":"[Feat. Req] Custom Element class","user":{"login":"Aedaeum","id":2054218,"avatar_url":"https://avatars.githubusercontent.com/u/2054218?v=3","gravatar_id":"","url":"https://api.github.com/users/Aedaeum","html_url":"https://github.com/Aedaeum","followers_url":"https://api.github.com/users/Aedaeum/followers","following_url":"https://api.github.com/users/Aedaeum/following{/other_user}","gists_url":"https://api.github.com/users/Aedaeum/gists{/gist_id}","starred_url":"https://api.github.com/users/Aedaeum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aedaeum/subscriptions","organizations_url":"https://api.github.com/users/Aedaeum/orgs","repos_url":"https://api.github.com/users/Aedaeum/repos","events_url":"https://api.github.com/users/Aedaeum/events{/privacy}","received_events_url":"https://api.github.com/users/Aedaeum/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/aurelia/templating/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"EisenbergEffect","id":131485,"avatar_url":"https://avatars.githubusercontent.com/u/131485?v=3","gravatar_id":"","url":"https://api.github.com/users/EisenbergEffect","html_url":"https://github.com/EisenbergEffect","followers_url":"https://api.github.com/users/EisenbergEffect/followers","following_url":"https://api.github.com/users/EisenbergEffect/following{/other_user}","gists_url":"https://api.github.com/users/EisenbergEffect/gists{/gist_id}","starred_url":"https://api.github.com/users/EisenbergEffect/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EisenbergEffect/subscriptions","organizations_url":"https://api.github.com/users/EisenbergEffect/orgs","repos_url":"https://api.github.com/users/EisenbergEffect/repos","events_url":"https://api.github.com/users/EisenbergEffect/events{/privacy}","received_events_url":"https://api.github.com/users/EisenbergEffect/received_events","type":"User","site_admin":false},"milestone":null,"comments":14,"created_at":"2015-04-23T10:56:57Z","updated_at":"2015-05-15T14:44:13Z","closed_at":null,"body":"In the view of a custom element, we currently put:\r\n```html\r\n<template>\r\n    ...\r\n</template>\r\n```\r\n\r\nThe template element is embedded and replaced with the name of the view-model. Let's assume I have a custom element named `message` for example. The embedded object would look like the following:\r\n```html\r\n<message class='au-target'>\r\n    ...\r\n</message>\r\n```\r\n\r\nIt would be nice if we could also apply a class directly on this embedded object. Currently we would have to `@inject(Element)` and programmatically add the class. It would be nice to have the much simpler and more logical convention as follows:\r\n\r\n**View**\r\n```html\r\n<template class='message'>\r\n    ...\r\n</template>\r\n```\r\n**Embedded As**\r\n```html\r\n<message class='au-target message'>\r\n    ...\r\n</message>\r\n```"},"comment":{"url":"https://api.github.com/repos/aurelia/templating/issues/comments/102417641","html_url":"https://github.com/aurelia/templating/issues/61#issuecomment-102417641","issue_url":"https://api.github.com/repos/aurelia/templating/issues/61","id":102417641,"user":{"login":"Aedaeum","id":2054218,"avatar_url":"https://avatars.githubusercontent.com/u/2054218?v=3","gravatar_id":"","url":"https://api.github.com/users/Aedaeum","html_url":"https://github.com/Aedaeum","followers_url":"https://api.github.com/users/Aedaeum/followers","following_url":"https://api.github.com/users/Aedaeum/following{/other_user}","gists_url":"https://api.github.com/users/Aedaeum/gists{/gist_id}","starred_url":"https://api.github.com/users/Aedaeum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aedaeum/subscriptions","organizations_url":"https://api.github.com/users/Aedaeum/orgs","repos_url":"https://api.github.com/users/Aedaeum/repos","events_url":"https://api.github.com/users/Aedaeum/events{/privacy}","received_events_url":"https://api.github.com/users/Aedaeum/received_events","type":"User","site_admin":false},"created_at":"2015-05-15T14:44:13Z","updated_at":"2015-05-15T14:44:13Z","body":"Excellent :)"}}