{"action":"created","issue":{"url":"https://api.github.com/repos/shannonmoeller/handlebars-layouts/issues/25","labels_url":"https://api.github.com/repos/shannonmoeller/handlebars-layouts/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/shannonmoeller/handlebars-layouts/issues/25/comments","events_url":"https://api.github.com/repos/shannonmoeller/handlebars-layouts/issues/25/events","html_url":"https://github.com/shannonmoeller/handlebars-layouts/pull/25","id":98420788,"number":25,"title":"Preserve the context in child partial","user":{"login":"Florian-R","id":1374176,"avatar_url":"https://avatars.githubusercontent.com/u/1374176?v=3","gravatar_id":"","url":"https://api.github.com/users/Florian-R","html_url":"https://github.com/Florian-R","followers_url":"https://api.github.com/users/Florian-R/followers","following_url":"https://api.github.com/users/Florian-R/following{/other_user}","gists_url":"https://api.github.com/users/Florian-R/gists{/gist_id}","starred_url":"https://api.github.com/users/Florian-R/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Florian-R/subscriptions","organizations_url":"https://api.github.com/users/Florian-R/orgs","repos_url":"https://api.github.com/users/Florian-R/repos","events_url":"https://api.github.com/users/Florian-R/events{/privacy}","received_events_url":"https://api.github.com/users/Florian-R/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-07-31T16:05:40Z","updated_at":"2015-08-26T09:33:00Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/shannonmoeller/handlebars-layouts/pulls/25","html_url":"https://github.com/shannonmoeller/handlebars-layouts/pull/25","diff_url":"https://github.com/shannonmoeller/handlebars-layouts/pull/25.diff","patch_url":"https://github.com/shannonmoeller/handlebars-layouts/pull/25.patch"},"body":"When a partial extend a partial which itself contains a partial with hardcoded variables\r\n\r\n```\r\n{{> input label=\"foo\"}}\r\n```\r\n\r\nit's context is clobbered, due to the usage of Object.create. See this [bin](http://jsbin.com/hotowoxojo/1/edit?html,js,output), it shall demonstrate the problem.\r\n\r\nI've added lodash.deepClone, just for demonstration purpose,  but it add a lot of noise. Let me now which implementation of deepCloning you're the most happy with and i'll amend the PR.\r\n\r\nI'm not quite happy with the way i've structured and named the test file. Let me know if there's a better way to do it."},"comment":{"url":"https://api.github.com/repos/shannonmoeller/handlebars-layouts/issues/comments/134919119","html_url":"https://github.com/shannonmoeller/handlebars-layouts/pull/25#issuecomment-134919119","issue_url":"https://api.github.com/repos/shannonmoeller/handlebars-layouts/issues/25","id":134919119,"user":{"login":"Florian-R","id":1374176,"avatar_url":"https://avatars.githubusercontent.com/u/1374176?v=3","gravatar_id":"","url":"https://api.github.com/users/Florian-R","html_url":"https://github.com/Florian-R","followers_url":"https://api.github.com/users/Florian-R/followers","following_url":"https://api.github.com/users/Florian-R/following{/other_user}","gists_url":"https://api.github.com/users/Florian-R/gists{/gist_id}","starred_url":"https://api.github.com/users/Florian-R/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Florian-R/subscriptions","organizations_url":"https://api.github.com/users/Florian-R/orgs","repos_url":"https://api.github.com/users/Florian-R/repos","events_url":"https://api.github.com/users/Florian-R/events{/privacy}","received_events_url":"https://api.github.com/users/Florian-R/received_events","type":"User","site_admin":false},"created_at":"2015-08-26T09:33:00Z","updated_at":"2015-08-26T09:33:00Z","body":"@shannonmoeller Any chance to get this reviewed? Thanks!"}}