{"action":"closed","issue":{"url":"https://api.github.com/repos/marko-js/marko/issues/286","repository_url":"https://api.github.com/repos/marko-js/marko","labels_url":"https://api.github.com/repos/marko-js/marko/issues/286/labels{/name}","comments_url":"https://api.github.com/repos/marko-js/marko/issues/286/comments","events_url":"https://api.github.com/repos/marko-js/marko/issues/286/events","html_url":"https://github.com/marko-js/marko/issues/286","id":153339125,"number":286,"title":"Automatically pass res.locals to template.render()","user":{"login":"mlrawlings","id":1958812,"avatar_url":"https://avatars.githubusercontent.com/u/1958812?v=3","gravatar_id":"","url":"https://api.github.com/users/mlrawlings","html_url":"https://github.com/mlrawlings","followers_url":"https://api.github.com/users/mlrawlings/followers","following_url":"https://api.github.com/users/mlrawlings/following{/other_user}","gists_url":"https://api.github.com/users/mlrawlings/gists{/gist_id}","starred_url":"https://api.github.com/users/mlrawlings/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlrawlings/subscriptions","organizations_url":"https://api.github.com/users/mlrawlings/orgs","repos_url":"https://api.github.com/users/mlrawlings/repos","events_url":"https://api.github.com/users/mlrawlings/events{/privacy}","received_events_url":"https://api.github.com/users/mlrawlings/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-05T22:19:27Z","updated_at":"2016-05-06T21:57:56Z","closed_at":"2016-05-06T21:57:56Z","body":"Marko provides `data.$global` as a way to pass global information to a template, but currently if there is global information for a request, it must be passed into each `template.render()` call.   We should provide a function similar to `res.render()` that behaves similarly (exposes `app.locals`, `res.locals`), but without the drawbacks of going through express's view engine."}}