{"action":"opened","issue":{"url":"https://api.github.com/repos/donpark/hbs/issues/101","labels_url":"https://api.github.com/repos/donpark/hbs/issues/101/labels{/name}","comments_url":"https://api.github.com/repos/donpark/hbs/issues/101/comments","events_url":"https://api.github.com/repos/donpark/hbs/issues/101/events","html_url":"https://github.com/donpark/hbs/issues/101","id":96915951,"number":101,"title":"localsAsTemplateData doesn't work when caching is enabled","user":{"login":"dpolivy","id":3200655,"avatar_url":"https://avatars.githubusercontent.com/u/3200655?v=3","gravatar_id":"","url":"https://api.github.com/users/dpolivy","html_url":"https://github.com/dpolivy","followers_url":"https://api.github.com/users/dpolivy/followers","following_url":"https://api.github.com/users/dpolivy/following{/other_user}","gists_url":"https://api.github.com/users/dpolivy/gists{/gist_id}","starred_url":"https://api.github.com/users/dpolivy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dpolivy/subscriptions","organizations_url":"https://api.github.com/users/dpolivy/orgs","repos_url":"https://api.github.com/users/dpolivy/repos","events_url":"https://api.github.com/users/dpolivy/events{/privacy}","received_events_url":"https://api.github.com/users/dpolivy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-23T22:14:00Z","updated_at":"2015-07-23T22:14:00Z","closed_at":null,"body":"The new `localsAsTemplateData` function doesn't pass the locals as `data` when the template is already cached.\r\n\r\nThis line is executed when the template is cached; it needs to be updated to pass in the `data` object:\r\nhttps://github.com/donpark/hbs/blob/master/lib/hbs.js#L46\r\n\r\nOn a side note, why is the object duplicated as `__hbsLocals` -- why not just set a flag to indicate the locals should be passed as data, too?"}}