{"action":"created","issue":{"url":"https://api.github.com/repos/middleman/middleman-guides/issues/535","repository_url":"https://api.github.com/repos/middleman/middleman-guides","labels_url":"https://api.github.com/repos/middleman/middleman-guides/issues/535/labels{/name}","comments_url":"https://api.github.com/repos/middleman/middleman-guides/issues/535/comments","events_url":"https://api.github.com/repos/middleman/middleman-guides/issues/535/events","html_url":"https://github.com/middleman/middleman-guides/issues/535","id":115429193,"number":535,"title":"\"wrap_layout\" doesn't work as the document.","user":{"login":"tarky","id":3303297,"avatar_url":"https://avatars.githubusercontent.com/u/3303297?v=3","gravatar_id":"","url":"https://api.github.com/users/tarky","html_url":"https://github.com/tarky","followers_url":"https://api.github.com/users/tarky/followers","following_url":"https://api.github.com/users/tarky/following{/other_user}","gists_url":"https://api.github.com/users/tarky/gists{/gist_id}","starred_url":"https://api.github.com/users/tarky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tarky/subscriptions","organizations_url":"https://api.github.com/users/tarky/orgs","repos_url":"https://api.github.com/users/tarky/repos","events_url":"https://api.github.com/users/tarky/events{/privacy}","received_events_url":"https://api.github.com/users/tarky/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-11-06T03:52:54Z","updated_at":"2016-04-14T04:26:56Z","closed_at":"2015-12-20T21:20:29Z","body":"If you use nested layout, the doc tells\r\n\r\n```erb\r\n<% wrap_layout :layout do %>\r\n  <article>\r\n    <%= yield %>\r\n  </article>\r\n<% end %>\r\n```\r\nBut this doesn't work, which is  said to be because of change in Padrino.\r\nhttps://github.com/middleman/middleman/issues/1269\r\n\r\nSo you need to use use slim or haml like following, which works.\r\n\r\n```slim\r\n= wrap_layout :layout\r\n  article\r\n    = yield\r\n```\r\n\r\nOr if you stick to erb, you can write like the below, though it's kind of ridiculous.\r\n\r\n```erb\r\n\r\n<%= wrap_layout :layout do\r\n  \"<article>\r\n    #{yield}\r\n  </article>\"\r\n end %>\r\n\r\n```\r\n\r\nSo could you guys make a judgement how to say things above in the document?\r\n"},"comment":{"url":"https://api.github.com/repos/middleman/middleman-guides/issues/comments/209756345","html_url":"https://github.com/middleman/middleman-guides/issues/535#issuecomment-209756345","issue_url":"https://api.github.com/repos/middleman/middleman-guides/issues/535","id":209756345,"user":{"login":"dsignr","id":5097028,"avatar_url":"https://avatars.githubusercontent.com/u/5097028?v=3","gravatar_id":"","url":"https://api.github.com/users/dsignr","html_url":"https://github.com/dsignr","followers_url":"https://api.github.com/users/dsignr/followers","following_url":"https://api.github.com/users/dsignr/following{/other_user}","gists_url":"https://api.github.com/users/dsignr/gists{/gist_id}","starred_url":"https://api.github.com/users/dsignr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsignr/subscriptions","organizations_url":"https://api.github.com/users/dsignr/orgs","repos_url":"https://api.github.com/users/dsignr/repos","events_url":"https://api.github.com/users/dsignr/events{/privacy}","received_events_url":"https://api.github.com/users/dsignr/received_events","type":"User","site_admin":false},"created_at":"2016-04-14T04:26:56Z","updated_at":"2016-04-14T04:26:56Z","body":"This issue still persists as of April 2016 :("}}