{"action":"created","issue":{"url":"https://api.github.com/repos/mde/ejs/issues/62","labels_url":"https://api.github.com/repos/mde/ejs/issues/62/labels{/name}","comments_url":"https://api.github.com/repos/mde/ejs/issues/62/comments","events_url":"https://api.github.com/repos/mde/ejs/issues/62/events","html_url":"https://github.com/mde/ejs/issues/62","id":56334055,"number":62,"title":"Layout support","user":{"login":"whitneyit","id":995120,"avatar_url":"https://avatars.githubusercontent.com/u/995120?v=3","gravatar_id":"","url":"https://api.github.com/users/whitneyit","html_url":"https://github.com/whitneyit","followers_url":"https://api.github.com/users/whitneyit/followers","following_url":"https://api.github.com/users/whitneyit/following{/other_user}","gists_url":"https://api.github.com/users/whitneyit/gists{/gist_id}","starred_url":"https://api.github.com/users/whitneyit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whitneyit/subscriptions","organizations_url":"https://api.github.com/users/whitneyit/orgs","repos_url":"https://api.github.com/users/whitneyit/repos","events_url":"https://api.github.com/users/whitneyit/events{/privacy}","received_events_url":"https://api.github.com/users/whitneyit/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mde/ejs/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2015-02-03T04:58:21Z","updated_at":"2015-02-03T20:30:43Z","closed_at":null,"body":"I've started to implement layout support for ejs and before I go too far down the rabbit hole I thought it would be worthwhile to get some feedback.\r\n\r\nIn my fork of the repo I have started to add some test file for the possible layout syntax. The idea behind the syntax is based off of [Laravel's templating engine](http://laravel.com/docs/master/templates).\r\n\r\nI have put together a few example use cases that will need to be tested against.\r\n\r\n*Layout files*\r\n * [test/fixtures/layouts/single.ejs](https://github.com/whitneyit/ejs/blob/feature/add-layout-support/test/fixtures/layouts/single.ejs)\r\n * [test/fixtures/layouts/multiple.ejs](https://github.com/whitneyit/ejs/blob/feature/add-layout-support/test/fixtures/layouts/multiple.ejs)\r\n * [test/fixtures/layouts/nested.ejs](https://github.com/whitneyit/ejs/blob/feature/add-layout-support/test/fixtures/layouts/nested.ejs)\r\n * [test/fixtures/layouts/defaults.ejs](https://github.com/whitneyit/ejs/blob/feature/add-layout-support/test/fixtures/layouts/defaults.ejs)\r\n\r\n*Use cases*\r\n * [test/fixtures/layout.ejs](https://github.com/whitneyit/ejs/blob/feature/add-layout-support/test/fixtures/layout.ejs)\r\n * [test/fixtures/layout_bare.ejs](https://github.com/whitneyit/ejs/blob/feature/add-layout-support/test/fixtures/layout_bare.ejs)\r\n * [test/fixtures/layout_defaults.ejs](https://github.com/whitneyit/ejs/blob/feature/add-layout-support/test/fixtures/layout_defaults.ejs)\r\n * [test/fixtures/layout_ignored.ejs](https://github.com/whitneyit/ejs/blob/feature/add-layout-support/test/fixtures/layout_ignored.ejs)\r\n * [test/fixtures/layout_multiple.ejs](https://github.com/whitneyit/ejs/blob/feature/add-layout-support/test/fixtures/layout_multiple.ejs)\r\n * [test/fixtures/layout_nested.ejs](https://github.com/whitneyit/ejs/blob/feature/add-layout-support/test/fixtures/layout_nested.ejs)\r\n * [test/fixtures/layout_undefined.ejs](https://github.com/whitneyit/ejs/blob/feature/add-layout-support/test/fixtures/layout_undefined.ejs)\r\n\r\nWhat do you think?"},"comment":{"url":"https://api.github.com/repos/mde/ejs/issues/comments/72728258","html_url":"https://github.com/mde/ejs/issues/62#issuecomment-72728258","issue_url":"https://api.github.com/repos/mde/ejs/issues/62","id":72728258,"user":{"login":"whitneyit","id":995120,"avatar_url":"https://avatars.githubusercontent.com/u/995120?v=3","gravatar_id":"","url":"https://api.github.com/users/whitneyit","html_url":"https://github.com/whitneyit","followers_url":"https://api.github.com/users/whitneyit/followers","following_url":"https://api.github.com/users/whitneyit/following{/other_user}","gists_url":"https://api.github.com/users/whitneyit/gists{/gist_id}","starred_url":"https://api.github.com/users/whitneyit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whitneyit/subscriptions","organizations_url":"https://api.github.com/users/whitneyit/orgs","repos_url":"https://api.github.com/users/whitneyit/repos","events_url":"https://api.github.com/users/whitneyit/events{/privacy}","received_events_url":"https://api.github.com/users/whitneyit/received_events","type":"User","site_admin":false},"created_at":"2015-02-03T20:30:43Z","updated_at":"2015-02-03T20:30:43Z","body":"Ok mate I wasn't sure if that's what you meant or if I you meant that I\r\nwould be implementing breaking changes\r\n\r\nCheers\r\nOn 4 Feb 2015 7:29 am, \"Timothy Gu\" <notifications@github.com> wrote:\r\n\r\n> When I said\r\n>\r\n>  Why break something that worked?\r\n>\r\n>  I meant EJS v2 removed something that worked in EJS v1.\r\n>\r\n> —\r\n> Reply to this email directly or view it on GitHub\r\n> <https://github.com/mde/ejs/issues/62#issuecomment-72727979>.\r\n>"}}