{"action":"created","issue":{"url":"https://api.github.com/repos/gustafnk/h-include/issues/20","repository_url":"https://api.github.com/repos/gustafnk/h-include","labels_url":"https://api.github.com/repos/gustafnk/h-include/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/gustafnk/h-include/issues/20/comments","events_url":"https://api.github.com/repos/gustafnk/h-include/issues/20/events","html_url":"https://github.com/gustafnk/h-include/issues/20","id":155178318,"number":20,"title":" `@class` is clobbered - this should be configurable","user":{"login":"shogun70","id":434778,"avatar_url":"https://avatars.githubusercontent.com/u/434778?v=3","gravatar_id":"","url":"https://api.github.com/users/shogun70","html_url":"https://github.com/shogun70","followers_url":"https://api.github.com/users/shogun70/followers","following_url":"https://api.github.com/users/shogun70/following{/other_user}","gists_url":"https://api.github.com/users/shogun70/gists{/gist_id}","starred_url":"https://api.github.com/users/shogun70/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shogun70/subscriptions","organizations_url":"https://api.github.com/users/shogun70/orgs","repos_url":"https://api.github.com/users/shogun70/repos","events_url":"https://api.github.com/users/shogun70/events{/privacy}","received_events_url":"https://api.github.com/users/shogun70/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/gustafnk/h-include/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-05-17T05:13:23Z","updated_at":"2016-06-25T11:03:24Z","closed_at":null,"body":"If a `<h-include>` element already has `@class` then its value is **replaced** by \"include_200\" (or similar). \r\n\r\nI think it would be more appropriate to only replace (whitespace-separated) tokens within `@class` that match `/^include_\\d+$/i`. \r\n\r\nIdeally there is a way to intercept success and failure handling to implement a completely different behavior, leaving the current behavior as the (preventable) default action. \r\n\r\nI also note (so I don't forget) that there are a few code paths where errors in transclusion won't be indicated in any way:\r\n\r\n- basically any place in `show_content()` which returns or throws before the bottom of the function.\r\n\r\n- fragment not found errors log a console warning but don't change the `<h-include>` class or content. \r\n    Some user-interaction might have triggered a `@src` change but the contents and appearance \r\n    still matches the previous `@src`. \r\n    I wonder if this should be considered a `404` error?\r\n\r\n- recursion error (maybe a `412` error is appropriate?)"},"comment":{"url":"https://api.github.com/repos/gustafnk/h-include/issues/comments/228532671","html_url":"https://github.com/gustafnk/h-include/issues/20#issuecomment-228532671","issue_url":"https://api.github.com/repos/gustafnk/h-include/issues/20","id":228532671,"user":{"login":"gustafnk","id":307709,"avatar_url":"https://avatars.githubusercontent.com/u/307709?v=3","gravatar_id":"","url":"https://api.github.com/users/gustafnk","html_url":"https://github.com/gustafnk","followers_url":"https://api.github.com/users/gustafnk/followers","following_url":"https://api.github.com/users/gustafnk/following{/other_user}","gists_url":"https://api.github.com/users/gustafnk/gists{/gist_id}","starred_url":"https://api.github.com/users/gustafnk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gustafnk/subscriptions","organizations_url":"https://api.github.com/users/gustafnk/orgs","repos_url":"https://api.github.com/users/gustafnk/repos","events_url":"https://api.github.com/users/gustafnk/events{/privacy}","received_events_url":"https://api.github.com/users/gustafnk/received_events","type":"User","site_admin":false},"created_at":"2016-06-25T11:03:24Z","updated_at":"2016-06-25T11:03:24Z","body":"It's possible to override how @class is modified with the onEnd hook from https://github.com/gustafnk/h-include/pull/21"}}
{"actor":{"display_login":"gustafnk"}}