{"action":"created","issue":{"url":"https://api.github.com/repos/raptorjs/marko/issues/16","labels_url":"https://api.github.com/repos/raptorjs/marko/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/raptorjs/marko/issues/16/comments","events_url":"https://api.github.com/repos/raptorjs/marko/issues/16/events","html_url":"https://github.com/raptorjs/marko/issues/16","id":54840087,"number":16,"title":"Add documentation for the $global property","user":{"login":"patrick-steele-idem","id":978214,"avatar_url":"https://avatars.githubusercontent.com/u/978214?v=3","gravatar_id":"","url":"https://api.github.com/users/patrick-steele-idem","html_url":"https://github.com/patrick-steele-idem","followers_url":"https://api.github.com/users/patrick-steele-idem/followers","following_url":"https://api.github.com/users/patrick-steele-idem/following{/other_user}","gists_url":"https://api.github.com/users/patrick-steele-idem/gists{/gist_id}","starred_url":"https://api.github.com/users/patrick-steele-idem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patrick-steele-idem/subscriptions","organizations_url":"https://api.github.com/users/patrick-steele-idem/orgs","repos_url":"https://api.github.com/users/patrick-steele-idem/repos","events_url":"https://api.github.com/users/patrick-steele-idem/events{/privacy}","received_events_url":"https://api.github.com/users/patrick-steele-idem/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/raptorjs/marko/labels/docs","name":"docs","color":"207de5"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-20T03:34:43Z","updated_at":"2015-02-05T01:02:14Z","closed_at":"2015-02-05T01:02:14Z","body":"The $global property is used to add data that is available to all templates encountered during rendering by having the data hang off the wrapped writer.\r\n\r\n```javascript\r\ntemplate.render{\r\n        $global: {\r\n            name: 'Frank'\r\n        }\r\n    },\r\n    res);\r\n```\r\n\r\nGiven the following template:\r\n\r\n```html\r\n<div>\r\n    Hello ${out.global.name}!\r\n</div>\r\n```\r\n\r\nThe output would be the following:\r\n\r\n```html\r\n<div>\r\n    Hello Frank\r\n</div>\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/raptorjs/marko/issues/comments/72974803","html_url":"https://github.com/raptorjs/marko/issues/16#issuecomment-72974803","issue_url":"https://api.github.com/repos/raptorjs/marko/issues/16","id":72974803,"user":{"login":"patrick-steele-idem","id":978214,"avatar_url":"https://avatars.githubusercontent.com/u/978214?v=3","gravatar_id":"","url":"https://api.github.com/users/patrick-steele-idem","html_url":"https://github.com/patrick-steele-idem","followers_url":"https://api.github.com/users/patrick-steele-idem/followers","following_url":"https://api.github.com/users/patrick-steele-idem/following{/other_user}","gists_url":"https://api.github.com/users/patrick-steele-idem/gists{/gist_id}","starred_url":"https://api.github.com/users/patrick-steele-idem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patrick-steele-idem/subscriptions","organizations_url":"https://api.github.com/users/patrick-steele-idem/orgs","repos_url":"https://api.github.com/users/patrick-steele-idem/repos","events_url":"https://api.github.com/users/patrick-steele-idem/events{/privacy}","received_events_url":"https://api.github.com/users/patrick-steele-idem/received_events","type":"User","site_admin":false},"created_at":"2015-02-05T01:02:14Z","updated_at":"2015-02-05T01:02:14Z","body":"Fixed by 90f7dbf8c496d7c65d776042472fdbac646ef0d0"}}