{"action":"created","issue":{"url":"https://api.github.com/repos/meteor/blaze/issues/6","repository_url":"https://api.github.com/repos/meteor/blaze","labels_url":"https://api.github.com/repos/meteor/blaze/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/meteor/blaze/issues/6/comments","events_url":"https://api.github.com/repos/meteor/blaze/issues/6/events","html_url":"https://github.com/meteor/blaze/issues/6","id":137881058,"number":6,"title":"Easy way to force no data context in templates","user":{"login":"mitar","id":585279,"avatar_url":"https://avatars.githubusercontent.com/u/585279?v=3","gravatar_id":"","url":"https://api.github.com/users/mitar","html_url":"https://github.com/mitar","followers_url":"https://api.github.com/users/mitar/followers","following_url":"https://api.github.com/users/mitar/following{/other_user}","gists_url":"https://api.github.com/users/mitar/gists{/gist_id}","starred_url":"https://api.github.com/users/mitar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mitar/subscriptions","organizations_url":"https://api.github.com/users/mitar/orgs","repos_url":"https://api.github.com/users/mitar/repos","events_url":"https://api.github.com/users/mitar/events{/privacy}","received_events_url":"https://api.github.com/users/mitar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-02T14:01:03Z","updated_at":"2016-03-05T10:48:26Z","closed_at":null,"body":"(From https://github.com/meteor/meteor/issues/5459 .)\r\n\r\nProposal:\r\n\r\n```\r\n{{> fooTemplate ()}}\r\n```\r\n\r\nIncludes the template with `{}` as a data context.\r\n\r\nWe should check if `{{> fooTemplate null}}` works.\r\n\r\nI would then suggest that we document this in the guide as a recommended way to include templates, if you do not want to pass a data context.\r\n\r\nOr, we could do:\r\n\r\n```\r\n<template name=\"foo\" nullDefaultDataContext=\"true\">\r\n  ...\r\n</template>\r\n```\r\n\r\nSo we could provide some arguments to template to tweak the behavior.\r\n\r\nImagine even:\r\n\r\n```\r\n<template name=\"foo\" templateInstanceAsThis=\"true\">\r\n  ...\r\n</template>\r\n```"},"comment":{"url":"https://api.github.com/repos/meteor/blaze/issues/comments/192621120","html_url":"https://github.com/meteor/blaze/issues/6#issuecomment-192621120","issue_url":"https://api.github.com/repos/meteor/blaze/issues/6","id":192621120,"user":{"login":"nathan-muir","id":3112329,"avatar_url":"https://avatars.githubusercontent.com/u/3112329?v=3","gravatar_id":"","url":"https://api.github.com/users/nathan-muir","html_url":"https://github.com/nathan-muir","followers_url":"https://api.github.com/users/nathan-muir/followers","following_url":"https://api.github.com/users/nathan-muir/following{/other_user}","gists_url":"https://api.github.com/users/nathan-muir/gists{/gist_id}","starred_url":"https://api.github.com/users/nathan-muir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathan-muir/subscriptions","organizations_url":"https://api.github.com/users/nathan-muir/orgs","repos_url":"https://api.github.com/users/nathan-muir/repos","events_url":"https://api.github.com/users/nathan-muir/events{/privacy}","received_events_url":"https://api.github.com/users/nathan-muir/received_events","type":"User","site_admin":false},"created_at":"2016-03-05T10:48:26Z","updated_at":"2016-03-05T10:48:26Z","body":"Hmm, is there a reason you would define it in the HTML file, why not add a methods to the template object?\r\n\r\neg.\r\n```\r\nTemplate.foo.defaultDataContext(()=> null)\r\n```\r\nor \r\n```\r\nTemplate.foo.configure({\r\n  defaultDataContext(){ return null; },\r\n  helperContext: 'instance'\r\n});\r\n"}}