{"action":"created","issue":{"url":"https://api.github.com/repos/marionettejs/backbone.marionette/issues/2166","labels_url":"https://api.github.com/repos/marionettejs/backbone.marionette/issues/2166/labels{/name}","comments_url":"https://api.github.com/repos/marionettejs/backbone.marionette/issues/2166/comments","events_url":"https://api.github.com/repos/marionettejs/backbone.marionette/issues/2166/events","html_url":"https://github.com/marionettejs/backbone.marionette/issues/2166","id":52938149,"number":2166,"title":"Rename `templateHelpers`","user":{"login":"jmeas","id":2322305,"avatar_url":"https://avatars.githubusercontent.com/u/2322305?v=3","gravatar_id":"","url":"https://api.github.com/users/jmeas","html_url":"https://github.com/jmeas","followers_url":"https://api.github.com/users/jmeas/followers","following_url":"https://api.github.com/users/jmeas/following{/other_user}","gists_url":"https://api.github.com/users/jmeas/gists{/gist_id}","starred_url":"https://api.github.com/users/jmeas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmeas/subscriptions","organizations_url":"https://api.github.com/users/jmeas/orgs","repos_url":"https://api.github.com/users/jmeas/repos","events_url":"https://api.github.com/users/jmeas/events{/privacy}","received_events_url":"https://api.github.com/users/jmeas/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/marionettejs/backbone.marionette/labels/discussion","name":"discussion","color":"cccccc"},{"url":"https://api.github.com/repos/marionettejs/backbone.marionette/labels/major","name":"major","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/marionettejs/backbone.marionette/milestones/12","html_url":"https://github.com/marionettejs/backbone.marionette/milestones/v3.0.0","labels_url":"https://api.github.com/repos/marionettejs/backbone.marionette/milestones/12/labels","id":630229,"number":12,"title":"v3.0.0","description":"","creator":{"login":"jmeas","id":2322305,"avatar_url":"https://avatars.githubusercontent.com/u/2322305?v=3","gravatar_id":"","url":"https://api.github.com/users/jmeas","html_url":"https://github.com/jmeas","followers_url":"https://api.github.com/users/jmeas/followers","following_url":"https://api.github.com/users/jmeas/following{/other_user}","gists_url":"https://api.github.com/users/jmeas/gists{/gist_id}","starred_url":"https://api.github.com/users/jmeas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmeas/subscriptions","organizations_url":"https://api.github.com/users/jmeas/orgs","repos_url":"https://api.github.com/users/jmeas/repos","events_url":"https://api.github.com/users/jmeas/events{/privacy}","received_events_url":"https://api.github.com/users/jmeas/received_events","type":"User","site_admin":false},"open_issues":61,"closed_issues":65,"state":"open","created_at":"2014-04-15T03:06:11Z","updated_at":"2015-04-12T22:34:12Z","due_on":null,"closed_at":null},"comments":23,"created_at":"2014-12-26T20:35:57Z","updated_at":"2015-04-14T05:05:49Z","closed_at":null,"body":"Marionette's views provide a fancy method called `templateHelpers.` This method provides a hook for you to add extra data to your template before it is rendered, which is super useful. But the name is terrible!\r\n\r\nFirstly, there's no notion of helpers in Underscore templates, only `data`. In this case, `templateHelpers` are adding extra *data* to your template. In Handlebars lingo, this would be equivalent to adding to the `context` that you pass to your template. In neither situation, though, is this method dealing with anything called a 'helper.'\r\n\r\nIn fact, in Underscore there's no notion of helpers at all, so it's simply an invented term. And with Handlebars the situation is far worse – the method conflicts with Handlebars helpers, which are an *entirely different concept altogether*!\r\n\r\nIn my opinion, this method's name should reflect the fact that it is adding data, or context, to a template, and should not use the word 'helpers' at all.\r\n\r\nJust to throw a possibility out there, `templateData` is one option. I can't say I'm super thrilled about this option, but I do think that it's better than `templateHelpers`."},"comment":{"url":"https://api.github.com/repos/marionettejs/backbone.marionette/issues/comments/92599557","html_url":"https://github.com/marionettejs/backbone.marionette/issues/2166#issuecomment-92599557","issue_url":"https://api.github.com/repos/marionettejs/backbone.marionette/issues/2166","id":92599557,"user":{"login":"jdaudier","id":1666031,"avatar_url":"https://avatars.githubusercontent.com/u/1666031?v=3","gravatar_id":"","url":"https://api.github.com/users/jdaudier","html_url":"https://github.com/jdaudier","followers_url":"https://api.github.com/users/jdaudier/followers","following_url":"https://api.github.com/users/jdaudier/following{/other_user}","gists_url":"https://api.github.com/users/jdaudier/gists{/gist_id}","starred_url":"https://api.github.com/users/jdaudier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdaudier/subscriptions","organizations_url":"https://api.github.com/users/jdaudier/orgs","repos_url":"https://api.github.com/users/jdaudier/repos","events_url":"https://api.github.com/users/jdaudier/events{/privacy}","received_events_url":"https://api.github.com/users/jdaudier/received_events","type":"User","site_admin":false},"created_at":"2015-04-14T05:05:49Z","updated_at":"2015-04-14T05:05:49Z","body":"How about `extraData` or `addExtraData`? :smiley: "}}