helper.RenderGlimmer before/after positional element

With the DecoratedHtml change (lovely change, thanks for that!), I played around decorateCookedElement, and it seems to append into the positional element.

Is there a way to insert it before or after the positional element?

I have the impression it’s forced to append here:

I guess a workaround would be to create a wrapper first and then call renderGlimmer on it.
Or is there a better way?

The only options Ember provide for in-element are

  • the default, which replaces the entire contents of the element

  • insertBefore=null, which appends the component as the last child of the element

Unfortunately, other values for insertBefore are not supported. (ember forum reference)

So yup, if you need different positioning, a wrapper is the way to go :+1:

3 Likes