{"action":"created","issue":{"url":"https://api.github.com/repos/cloudfour/drizzle/issues/19","repository_url":"https://api.github.com/repos/cloudfour/drizzle","labels_url":"https://api.github.com/repos/cloudfour/drizzle/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/cloudfour/drizzle/issues/19/comments","events_url":"https://api.github.com/repos/cloudfour/drizzle/issues/19/events","html_url":"https://github.com/cloudfour/drizzle/issues/19","id":150446143,"number":19,"title":"`blank.hbs` should be easier to extend","user":{"login":"tylersticka","id":69633,"avatar_url":"https://avatars.githubusercontent.com/u/69633?v=3","gravatar_id":"","url":"https://api.github.com/users/tylersticka","html_url":"https://github.com/tylersticka","followers_url":"https://api.github.com/users/tylersticka/followers","following_url":"https://api.github.com/users/tylersticka/following{/other_user}","gists_url":"https://api.github.com/users/tylersticka/gists{/gist_id}","starred_url":"https://api.github.com/users/tylersticka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tylersticka/subscriptions","organizations_url":"https://api.github.com/users/tylersticka/orgs","repos_url":"https://api.github.com/users/tylersticka/repos","events_url":"https://api.github.com/users/tylersticka/events{/privacy}","received_events_url":"https://api.github.com/users/tylersticka/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"mrgerardorodriguez","id":459757,"avatar_url":"https://avatars.githubusercontent.com/u/459757?v=3","gravatar_id":"","url":"https://api.github.com/users/mrgerardorodriguez","html_url":"https://github.com/mrgerardorodriguez","followers_url":"https://api.github.com/users/mrgerardorodriguez/followers","following_url":"https://api.github.com/users/mrgerardorodriguez/following{/other_user}","gists_url":"https://api.github.com/users/mrgerardorodriguez/gists{/gist_id}","starred_url":"https://api.github.com/users/mrgerardorodriguez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrgerardorodriguez/subscriptions","organizations_url":"https://api.github.com/users/mrgerardorodriguez/orgs","repos_url":"https://api.github.com/users/mrgerardorodriguez/repos","events_url":"https://api.github.com/users/mrgerardorodriguez/events{/privacy}","received_events_url":"https://api.github.com/users/mrgerardorodriguez/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/cloudfour/drizzle/milestones/1","html_url":"https://github.com/cloudfour/drizzle/milestones/1.0%20release","labels_url":"https://api.github.com/repos/cloudfour/drizzle/milestones/1/labels","id":1748144,"number":1,"title":"1.0 release","description":"","creator":{"login":"megnotarte","id":66242,"avatar_url":"https://avatars.githubusercontent.com/u/66242?v=3","gravatar_id":"","url":"https://api.github.com/users/megnotarte","html_url":"https://github.com/megnotarte","followers_url":"https://api.github.com/users/megnotarte/followers","following_url":"https://api.github.com/users/megnotarte/following{/other_user}","gists_url":"https://api.github.com/users/megnotarte/gists{/gist_id}","starred_url":"https://api.github.com/users/megnotarte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/megnotarte/subscriptions","organizations_url":"https://api.github.com/users/megnotarte/orgs","repos_url":"https://api.github.com/users/megnotarte/repos","events_url":"https://api.github.com/users/megnotarte/events{/privacy}","received_events_url":"https://api.github.com/users/megnotarte/received_events","type":"User","site_admin":false},"open_issues":8,"closed_issues":6,"state":"open","created_at":"2016-05-04T17:06:38Z","updated_at":"2016-05-11T15:22:38Z","due_on":"2016-06-01T07:00:00Z","closed_at":null},"comments":27,"created_at":"2016-04-22T18:55:34Z","updated_at":"2016-05-11T20:44:32Z","closed_at":null,"body":"This is a follow-up to my misguided cloudfour/drizzle-builder#81 issue.\r\n\r\nThe current `blank.hbs` layout looks like this:\r\n\r\n```hbs\r\n<!DOCTYPE html>\r\n<html class=\"{{htmlclass}}\">\r\n  <head>\r\n    {{#block \"head\"}}\r\n      {{!-- (etc.) --}}\r\n    {{/block}}\r\n  </head>\r\n  {{#block \"wrapper\"}}\r\n    <body>\r\n      {{#block \"body\"}}\r\n\r\n      {{/block}}\r\n    </body>\r\n  {{/block}}\r\n</html>\r\n```\r\n\r\nThe trouble is that if you want to extend this template and append things to `body` like so:\r\n\r\n```hbs\r\n{{#extend \"blank\"}}\r\n  {{#content \"body\" mode=\"append\"}}\r\n    <p>Hello world!</p>\r\n  {{/content}}\r\n{{/extend}}\r\n```\r\n\r\nIt will not work. This appears to be because the `body` block is _nested_ within the `wrapper` block.\r\n\r\nMy feeling is that we should restructure `blank.hbs` so there's more consistency between the HTML class, body class, head and what are essentially \"foot\" assets:\r\n\r\n```hbs\r\n<!DOCTYPE html>\r\n<html class=\"{{htmlclass}}\">\r\n  <head>\r\n    {{#block \"head\"}}\r\n      {{!-- (this part stays the same) --}}\r\n    {{/block}}\r\n  </head>\r\n  <body class=\"{{bodyclass}}\">\r\n    {{#block \"body\"}}\r\n\r\n    {{/block}}\r\n    {{#block \"foot\"}}\r\n\r\n    {{/block}}\r\n  </body>\r\n</html>\r\n```\r\n\r\nThis would allow us to specify `bodyclass` the same way as `htmlclass`, and we could pass along `<script>` elements and other resources with `{{#content \"foot\"}}{{/content}}`. But there may be other ways to pull this off!\r\n\r\n---\r\n\r\n@mrgerardorodriguez @erikjung "},"comment":{"url":"https://api.github.com/repos/cloudfour/drizzle/issues/comments/218584444","html_url":"https://github.com/cloudfour/drizzle/issues/19#issuecomment-218584444","issue_url":"https://api.github.com/repos/cloudfour/drizzle/issues/19","id":218584444,"user":{"login":"tylersticka","id":69633,"avatar_url":"https://avatars.githubusercontent.com/u/69633?v=3","gravatar_id":"","url":"https://api.github.com/users/tylersticka","html_url":"https://github.com/tylersticka","followers_url":"https://api.github.com/users/tylersticka/followers","following_url":"https://api.github.com/users/tylersticka/following{/other_user}","gists_url":"https://api.github.com/users/tylersticka/gists{/gist_id}","starred_url":"https://api.github.com/users/tylersticka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tylersticka/subscriptions","organizations_url":"https://api.github.com/users/tylersticka/orgs","repos_url":"https://api.github.com/users/tylersticka/repos","events_url":"https://api.github.com/users/tylersticka/events{/privacy}","received_events_url":"https://api.github.com/users/tylersticka/received_events","type":"User","site_admin":false},"created_at":"2016-05-11T20:44:32Z","updated_at":"2016-05-11T20:44:32Z","body":"I think that's sufficient for now, though as I said before, I do think adding a blank `foot` block to `blank.hbs` would be a nice usability default."}}