{"action":"opened","issue":{"url":"https://api.github.com/repos/octobercms/october/issues/2787","repository_url":"https://api.github.com/repos/octobercms/october","labels_url":"https://api.github.com/repos/octobercms/october/issues/2787/labels{/name}","comments_url":"https://api.github.com/repos/octobercms/october/issues/2787/comments","events_url":"https://api.github.com/repos/octobercms/october/issues/2787/events","html_url":"https://github.com/octobercms/october/issues/2787","id":218273972,"number":2787,"title":"No way for layouts to extend other layouts","user":{"login":"acobster","id":320688,"avatar_url":"https://avatars3.githubusercontent.com/u/320688?v=3","gravatar_id":"","url":"https://api.github.com/users/acobster","html_url":"https://github.com/acobster","followers_url":"https://api.github.com/users/acobster/followers","following_url":"https://api.github.com/users/acobster/following{/other_user}","gists_url":"https://api.github.com/users/acobster/gists{/gist_id}","starred_url":"https://api.github.com/users/acobster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acobster/subscriptions","organizations_url":"https://api.github.com/users/acobster/orgs","repos_url":"https://api.github.com/users/acobster/repos","events_url":"https://api.github.com/users/acobster/events{/privacy}","received_events_url":"https://api.github.com/users/acobster/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-03-30T17:42:49Z","updated_at":"2017-03-30T17:42:49Z","closed_at":null,"body":"##### Expected behavior\r\nI expect layouts to be able to extend other layouts.\r\n\r\n##### Actual behavior\r\nWhen I try to use the `extends` tag to extend the default layout from another layout, I get:\r\n\r\n> View [default] not found.\r\n\r\nAre hierarchical layouts just not supported by design? I can understand that the different anatomy of October views means reworking Twig to some extent, but this seems like a pretty central (and useful!) feature of Twig to give up.\r\n\r\n##### Reproduce steps\r\n\r\nlayouts/default.htm:\r\n\r\n```\r\ndescription = \"Default layout\"\r\n==\r\n<!DOCTYPE html>\r\n<html>\r\n  <head>\r\n    ...\r\n  </head>\r\n  <body>\r\n    {% block page_container %}\r\n      <div class=\"container>\r\n        Default content\r\n      </div>\r\n    {% endblock %}\r\n  </body>\r\n</html>\r\n```\r\n\r\nlayouts/other.htm:\r\n\r\n```\r\ndescription = \"Other layout\"\r\n==\r\n{% extends 'default' %}\r\n\r\n{% block page_container %}\r\n  <nav class=\"side-nav\">...</nav>\r\n  <div class=\"interior-container>\r\n    {% page %}\r\n  </div>\r\n{% endblock %}\r\n```\r\n\r\npages/interior-page.htm:\r\n\r\n```\r\ntitle = \"Example Interior\"\r\nurl = \"/interior\"\r\nlayout = \"other\"\r\n==\r\n<p>Interior page content</p>\r\n<p>Lorem ipsum dolor sit amet</p>\r\n```\r\n\r\n##### October build\r\n1.0.407"}}
{"actor":{"display_login":"acobster"}}