How do I fake "Dynamic Outlets"?

Yeah, basically along those lines, although not limited to a string, could be jQuery object or just DOM elements, since I could extend the L.Popup class, since at the core it’s setting DOM elements via innerHTML and appendChild (see here).

This is what I’m doing now or this, and this “works”, except that the events are no longer bound, and I’m sure bindings are broken.

I can also do something like this:

  mapPopupOpen: function (event) {
    App.PopupView.create({}).appendTo($(".leaflet-popup-content"));    
  }

But that gives me the following error (the templates are still inserted), since I’m trying to insert a Ember.View into a parent view.

Assertion failed: You cannot append to an existing Ember.View. Consider using Ember.ContainerView instead.

Although, the same happens if I try to appendTo am Ember.ContainerView instance. I’m assuming it wants the container to be appended either using {{view}} or via an {{outlet}}.