How do you render a view from within a handlebars helper that takes dynamic content?

It seems like the contentBinding is the problem. That content is somehow treated in a special way. Now I’m trying using a simple text binding instead, inspired by EasyForm.Hint (and EasyForm.Label):

Bootstrap.Label = Ember.View.extend Bootstrap.TypeSupport,
  tagName:        "span"
  classNames:     "label"
  baseClassName:  "label"
  init: () ->
    @_super()
    @set 'template', @renderText()
  renderText: () ->
    Ember.Handlebars.compile @.get('text')

Ember.Handlebars.registerBoundHelper 'bslabel', (property, options) ->
  console.log arguments
  options = property unless options
  Ember.Handlebars.helpers.view.call(this, Bootstrap.Label, options)

Now it looks pretty ugly:

{{bslabel textBinding="label" typeBinding="type"}}

Can I set the text from the property?

  options.hash.textBinding = property
  Ember.Handlebars.helpers.view.call(this, Bootstrap.Label, options)

So that I can do this:

{{bslabel label typeBinding="type"}}

Still nothing works. Now I get:

Uncaught TypeError: Cannot read property ‘constructor’ of undefined

It is all a big mystery how this is supposed to work!! :confused: Needs much better documentation than the simple examples I have seen so far. Hope someone out there can help out. Have spent 4 hrs this morning trying all that I can think of.