{"action":"created","issue":{"url":"https://api.github.com/repos/bobthecow/mustache.php/issues/299","repository_url":"https://api.github.com/repos/bobthecow/mustache.php","labels_url":"https://api.github.com/repos/bobthecow/mustache.php/issues/299/labels{/name}","comments_url":"https://api.github.com/repos/bobthecow/mustache.php/issues/299/comments","events_url":"https://api.github.com/repos/bobthecow/mustache.php/issues/299/events","html_url":"https://github.com/bobthecow/mustache.php/issues/299","id":167618294,"number":299,"title":"Feature Request: Root scope","user":{"login":"designermonkey","id":221344,"avatar_url":"https://avatars.githubusercontent.com/u/221344?v=3","gravatar_id":"","url":"https://api.github.com/users/designermonkey","html_url":"https://github.com/designermonkey","followers_url":"https://api.github.com/users/designermonkey/followers","following_url":"https://api.github.com/users/designermonkey/following{/other_user}","gists_url":"https://api.github.com/users/designermonkey/gists{/gist_id}","starred_url":"https://api.github.com/users/designermonkey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/designermonkey/subscriptions","organizations_url":"https://api.github.com/users/designermonkey/orgs","repos_url":"https://api.github.com/users/designermonkey/repos","events_url":"https://api.github.com/users/designermonkey/events{/privacy}","received_events_url":"https://api.github.com/users/designermonkey/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-26T14:15:52Z","updated_at":"2016-07-27T08:20:33Z","closed_at":"2016-07-27T08:20:33Z","body":"With the following in mind:\r\n\r\n```php\r\n<?php\r\n\r\n$arr = [\r\n    'content' => [\r\n        'brand' => [[\r\n            'logo' => [...]\r\n        ]]\r\n    ],\r\n    'relations' => [\r\n        'pages' => [[\r\n            'content' => [...]\r\n        ]]\r\n    ]\r\n];\r\n```\r\n\r\n```\r\n{{# relations.pages.0 }}\r\n<img src=\"{{ content.brand.0.logo.source }}\" alt=\"{{ content.brand.0.name }} Logo\" />\r\n{{/ relations.pages.0 }}\r\n```\r\n\r\nWhen trying to access the content of the parent scope, the content of the current scope takes over.\r\n\r\nIs there a way we could add a way to always force starting from the root scope? I know currently the code crawls back up the scope until it finds a matching key, but root scope access would be immense."},"comment":{"url":"https://api.github.com/repos/bobthecow/mustache.php/issues/comments/235518433","html_url":"https://github.com/bobthecow/mustache.php/issues/299#issuecomment-235518433","issue_url":"https://api.github.com/repos/bobthecow/mustache.php/issues/299","id":235518433,"user":{"login":"designermonkey","id":221344,"avatar_url":"https://avatars.githubusercontent.com/u/221344?v=3","gravatar_id":"","url":"https://api.github.com/users/designermonkey","html_url":"https://github.com/designermonkey","followers_url":"https://api.github.com/users/designermonkey/followers","following_url":"https://api.github.com/users/designermonkey/following{/other_user}","gists_url":"https://api.github.com/users/designermonkey/gists{/gist_id}","starred_url":"https://api.github.com/users/designermonkey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/designermonkey/subscriptions","organizations_url":"https://api.github.com/users/designermonkey/orgs","repos_url":"https://api.github.com/users/designermonkey/repos","events_url":"https://api.github.com/users/designermonkey/events{/privacy}","received_events_url":"https://api.github.com/users/designermonkey/received_events","type":"User","site_admin":false},"created_at":"2016-07-27T08:20:32Z","updated_at":"2016-07-27T08:20:32Z","body":"Now that is a good idea! I'd been looping over all the children and adding the right bits, but that seems quicker, thanks!"}}
{"actor":{"display_login":"designermonkey"}}