I am doing dynamic rendering in Ember 1.9 with the following helper:
export function helper(params, hash, options, env) {
var model = this.get('context');
var type = model.get('model.type') || model.get('type');
params[0] = type;
// pass modified parameters to underlying Ember render helper
this.container.resolve('helper:render').helperFunction.call(this, params, hash, options, env);
}
And in the template:
{{ render-widget 'x' model }}
You need a name for the template even though you are not using it, hence ‘x’.