{"action":"created","issue":{"url":"https://api.github.com/repos/emberjs/ember.js/issues/9545","labels_url":"https://api.github.com/repos/emberjs/ember.js/issues/9545/labels{/name}","comments_url":"https://api.github.com/repos/emberjs/ember.js/issues/9545/comments","events_url":"https://api.github.com/repos/emberjs/ember.js/issues/9545/events","html_url":"https://github.com/emberjs/ember.js/issues/9545","id":48454296,"number":9545,"title":"Render Helper cannot accept dynamic property as its first parameter, though the Partial Helper can?","user":{"login":"SimonKaluza","id":648386,"avatar_url":"https://avatars.githubusercontent.com/u/648386?v=3","gravatar_id":"","url":"https://api.github.com/users/SimonKaluza","html_url":"https://github.com/SimonKaluza","followers_url":"https://api.github.com/users/SimonKaluza/followers","following_url":"https://api.github.com/users/SimonKaluza/following{/other_user}","gists_url":"https://api.github.com/users/SimonKaluza/gists{/gist_id}","starred_url":"https://api.github.com/users/SimonKaluza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SimonKaluza/subscriptions","organizations_url":"https://api.github.com/users/SimonKaluza/orgs","repos_url":"https://api.github.com/users/SimonKaluza/repos","events_url":"https://api.github.com/users/SimonKaluza/events{/privacy}","received_events_url":"https://api.github.com/users/SimonKaluza/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/emberjs/ember.js/labels/bug","name":"bug","color":"e10c02"},{"url":"https://api.github.com/repos/emberjs/ember.js/labels/unverified","name":"unverified","color":"FFA500"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2014-11-12T00:22:57Z","updated_at":"2015-01-05T02:15:50Z","closed_at":"2015-01-05T02:15:50Z","body":"Can I pass in a dynamic template name to a `render` call in Handlebars for Ember.js?\r\n\r\nI'm attempting to create a component (a filter table) that accepts a run-time property that specifies exactly what template to render while looping over a collection of objects.  My code works fine when  using the `partial` helper to leverage a dynamic property parameter for the first parameter passing in a a `bodyTemplate` property on the parent component like:\r\n\r\n\r\n    {{#each r in records}}\r\n      <tr>\r\n      {{partial bodyTemplate}}\r\n      </tr>\r\n    {{/each}}\r\n\r\nbut fails when I use the `render` helper call in the same way like:\r\n\r\n    {{#each r in records}}\r\n      <tr>\r\n      {{render bodyTemplate r}}\r\n      </tr>\r\n    {{/each}}\r\n\r\nThe error that gets logged to the console is:\r\n\r\n    Uncaught Error: Assertion Failed: You used `{{render 'bodyTemplate'}}`, but 'bodyTemplate' can not be found as either a template or a view.\r\n\r\nThough this seems to be a separate issue from the inability to set up controller bindings in render helper calls like https://github.com/emberjs/ember.js/issues/1914 describes, but are these two issues related?  I intend to debug look into this further, but I wanted to see if anyone had some initial feedback.\r\n"},"comment":{"url":"https://api.github.com/repos/emberjs/ember.js/issues/comments/68661098","html_url":"https://github.com/emberjs/ember.js/issues/9545#issuecomment-68661098","issue_url":"https://api.github.com/repos/emberjs/ember.js/issues/9545","id":68661098,"user":{"login":"rwjblue","id":12637,"avatar_url":"https://avatars.githubusercontent.com/u/12637?v=3","gravatar_id":"","url":"https://api.github.com/users/rwjblue","html_url":"https://github.com/rwjblue","followers_url":"https://api.github.com/users/rwjblue/followers","following_url":"https://api.github.com/users/rwjblue/following{/other_user}","gists_url":"https://api.github.com/users/rwjblue/gists{/gist_id}","starred_url":"https://api.github.com/users/rwjblue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rwjblue/subscriptions","organizations_url":"https://api.github.com/users/rwjblue/orgs","repos_url":"https://api.github.com/users/rwjblue/repos","events_url":"https://api.github.com/users/rwjblue/events{/privacy}","received_events_url":"https://api.github.com/users/rwjblue/received_events","type":"User","site_admin":false},"created_at":"2015-01-05T02:15:50Z","updated_at":"2015-01-05T02:15:50Z","body":"Sorry for taking so long on a response here, but I'm going to close this now...\r\n\r\n`{{render}}` will be deprecated in 2.0, so I do not think we will be changing the way this works in the interim.\r\n"}}